diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-24 11:00:13 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-24 11:00:13 -0400 |
commit | 15953654cc312429740fd58fb37a5a3d63a54376 (patch) | |
tree | bbb6bf8d4ea943545e29ce896848182c4f206298 /include | |
parent | c3ed9ea4ab460080dea9449c709be9316c670c72 (diff) | |
parent | 24af3202459d9a25643009b1ab8ab5ff04d94b49 (diff) |
Merge git://git.infradead.org/battery-2.6
* git://git.infradead.org/battery-2.6:
ds2760_battery: Document ABI change
ds2760_battery: Make charge_now and charge_full writeable
power_supply: Add support for writeable properties
power_supply: Use attribute groups
power_supply: Add test_power driver
tosa_battery: Fix build error due to direct driver_data usage
wm97xx_battery: Quieten sparse warning (bat_set_pdata not declared)
ds2782_battery: Get rid of magic numbers in driver_data
ds2782_battery: Add support for ds2786 battery gas gauge
pda_power: Add function callbacks for suspend and resume
wm831x_power: Use genirq
Driver for Zipit Z2 battery chip
ds2782_battery: Fix clientdata on removal
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ds2782_battery.h | 8 | ||||
-rw-r--r-- | include/linux/pda_power.h | 2 | ||||
-rw-r--r-- | include/linux/power_supply.h | 6 | ||||
-rw-r--r-- | include/linux/z2_battery.h | 17 |
4 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/ds2782_battery.h b/include/linux/ds2782_battery.h new file mode 100644 index 000000000000..b4e281f65c15 --- /dev/null +++ b/include/linux/ds2782_battery.h | |||
@@ -0,0 +1,8 @@ | |||
1 | #ifndef __LINUX_DS2782_BATTERY_H | ||
2 | #define __LINUX_DS2782_BATTERY_H | ||
3 | |||
4 | struct ds278x_platform_data { | ||
5 | int rsns; | ||
6 | }; | ||
7 | |||
8 | #endif | ||
diff --git a/include/linux/pda_power.h b/include/linux/pda_power.h index d4cf7a2ceb3e..c9e4d814ff77 100644 --- a/include/linux/pda_power.h +++ b/include/linux/pda_power.h | |||
@@ -24,6 +24,8 @@ struct pda_power_pdata { | |||
24 | int (*is_usb_online)(void); | 24 | int (*is_usb_online)(void); |
25 | void (*set_charge)(int flags); | 25 | void (*set_charge)(int flags); |
26 | void (*exit)(struct device *dev); | 26 | void (*exit)(struct device *dev); |
27 | int (*suspend)(pm_message_t state); | ||
28 | int (*resume)(void); | ||
27 | 29 | ||
28 | char **supplied_to; | 30 | char **supplied_to; |
29 | size_t num_supplicants; | 31 | size_t num_supplicants; |
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index ebd2b8fb00d0..30083a896f36 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h | |||
@@ -114,6 +114,7 @@ enum power_supply_property { | |||
114 | POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG, | 114 | POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG, |
115 | POWER_SUPPLY_PROP_TIME_TO_FULL_NOW, | 115 | POWER_SUPPLY_PROP_TIME_TO_FULL_NOW, |
116 | POWER_SUPPLY_PROP_TIME_TO_FULL_AVG, | 116 | POWER_SUPPLY_PROP_TIME_TO_FULL_AVG, |
117 | POWER_SUPPLY_PROP_TYPE, /* use power_supply.type instead */ | ||
117 | /* Properties of type `const char *' */ | 118 | /* Properties of type `const char *' */ |
118 | POWER_SUPPLY_PROP_MODEL_NAME, | 119 | POWER_SUPPLY_PROP_MODEL_NAME, |
119 | POWER_SUPPLY_PROP_MANUFACTURER, | 120 | POWER_SUPPLY_PROP_MANUFACTURER, |
@@ -144,6 +145,11 @@ struct power_supply { | |||
144 | int (*get_property)(struct power_supply *psy, | 145 | int (*get_property)(struct power_supply *psy, |
145 | enum power_supply_property psp, | 146 | enum power_supply_property psp, |
146 | union power_supply_propval *val); | 147 | union power_supply_propval *val); |
148 | int (*set_property)(struct power_supply *psy, | ||
149 | enum power_supply_property psp, | ||
150 | const union power_supply_propval *val); | ||
151 | int (*property_is_writeable)(struct power_supply *psy, | ||
152 | enum power_supply_property psp); | ||
147 | void (*external_power_changed)(struct power_supply *psy); | 153 | void (*external_power_changed)(struct power_supply *psy); |
148 | void (*set_charged)(struct power_supply *psy); | 154 | void (*set_charged)(struct power_supply *psy); |
149 | 155 | ||
diff --git a/include/linux/z2_battery.h b/include/linux/z2_battery.h new file mode 100644 index 000000000000..7b9750404d22 --- /dev/null +++ b/include/linux/z2_battery.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef _LINUX_Z2_BATTERY_H | ||
2 | #define _LINUX_Z2_BATTERY_H | ||
3 | |||
4 | struct z2_battery_info { | ||
5 | int batt_I2C_bus; | ||
6 | int batt_I2C_addr; | ||
7 | int batt_I2C_reg; | ||
8 | int charge_gpio; | ||
9 | int min_voltage; | ||
10 | int max_voltage; | ||
11 | int batt_div; | ||
12 | int batt_mult; | ||
13 | int batt_tech; | ||
14 | char *batt_name; | ||
15 | }; | ||
16 | |||
17 | #endif | ||