1
2
3
4
5
6
7
8
9
10 #ifndef __LINUX_PM2301_H
11 #define __LINUX_PM2301_H
12
13
14
15
16
17
18 struct pm2xxx_bm_charger_parameters {
19 int ac_volt_max;
20 int ac_curr_max;
21 };
22
23
24
25
26
27
28 struct pm2xxx_bm_data {
29 bool enable_overshoot;
30 const struct pm2xxx_bm_charger_parameters *chg_params;
31 };
32
33 struct pm2xxx_charger_platform_data {
34 char **supplied_to;
35 size_t num_supplicants;
36 int i2c_bus;
37 const char *label;
38 int gpio_irq_number;
39 unsigned int lpn_gpio;
40 int irq_type;
41 };
42
43 struct pm2xxx_platform_data {
44 struct pm2xxx_charger_platform_data *wall_charger;
45 struct pm2xxx_bm_data *battery;
46 };
47
48 #endif