diff options
Diffstat (limited to 'include/linux/pcf506xx.h')
-rw-r--r-- | include/linux/pcf506xx.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/pcf506xx.h b/include/linux/pcf506xx.h new file mode 100644 index 00000000000..33be73eeb2c --- /dev/null +++ b/include/linux/pcf506xx.h @@ -0,0 +1,31 @@ +#ifndef _LINUX_PCF506XX_H +#define _LINUX_PCF506XX_H + + +#define PMU_VRAIL_F_SUSPEND_ON 0x00000001 /* Remains on during suspend */ +#define PMU_VRAIL_F_UNUSED 0x00000002 /* This rail is not used */ +struct pmu_voltage_rail { + char *name; + unsigned int flags; + struct { + unsigned int init; + unsigned int max; + } voltage; +}; + +enum pmu_event { + PMU_EVT_NONE, + PMU_EVT_INSERT, + PMU_EVT_REMOVE, +#ifdef CONFIG_SENSORS_PCF50633 + PMU_EVT_USB_INSERT, + PMU_EVT_USB_REMOVE, +#endif + __NUM_PMU_EVTS +}; + +typedef int pmu_cb(struct device *dev, unsigned int feature, + enum pmu_event event); + + +#endif /* !_LINUX_PCF506XX_H */ |