kernel_samsung_a53x/include/linux/regulator/pmic_class.h

20 lines
503 B
C
Raw Normal View History

2024-06-15 21:02:09 +02:00
#ifndef PMIC_CLASS_H
#define PMIC_CLASS_H
#if IS_ENABLED(CONFIG_DRV_SAMSUNG_PMIC)
extern struct device *pmic_device_create(void *drvdata, const char *fmt);
extern void pmic_device_destroy(dev_t devt);
struct pmic_device_attribute {
struct device_attribute dev_attr;
};
#define PMIC_ATTR(_name, _mode, _show, _store) \
{ .dev_attr = __ATTR(_name, _mode, _show, _store) }
#else
#define pmic_device_create(a, b) (-1)
#define pmic_device_destroy(a) do { } while (0)
#endif
#endif /* PMIC_CLASS_H */