You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
590 B
23 lines
590 B
#ifndef MUIC_SYSFS_H
|
|
#define MUIC_SYSFS_H
|
|
|
|
#include <linux/muic/muic.h>
|
|
|
|
#ifdef CONFIG_MUIC_SYSFS
|
|
extern struct device *muic_device_create(void *drvdata, const char *fmt);
|
|
extern void muic_device_destroy(dev_t devt);
|
|
extern int muic_sysfs_init(struct muic_platform_data *muic_pdata);
|
|
void muic_sysfs_deinit(struct muic_platform_data *muic_pdata);
|
|
#else
|
|
static inline struct device *muic_device_create(void *drvdata, const char *fmt)
|
|
{
|
|
pr_err("No rule to make muic sysfs\n");
|
|
return NULL;
|
|
}
|
|
static inline void muic_device_destroy(dev_t devt)
|
|
{
|
|
return;
|
|
}
|
|
#endif
|
|
|
|
#endif /* MUIC_SYSFS_H */
|
|
|