blob: 33be73eeb2cb95b11ba643999b11c716dcc38fa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 */
|