Merge git://git.infradead.org/battery-2.6
* git://git.infradead.org/battery-2.6: apm_power: check I.intval for zero value, we use it as the divisor MAINTAINERS: remove kernel-discuss@handhelds.org list pda_power: implement polling pda_power: various cleanups apm_power: support using VOLTAGE_* properties for apm calculations pda_power: add suspend/resume support power_supply: add few more values and props pda_power: only register available psu power: fix incorrect unregistration in power_supply_create_attrs error path power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL [BATTERY] power_supply_leds: use kasprintf [BATTERY] Every file should include the headers containing the prototypes for its global functions.
This commit is contained in:
@@ -26,6 +26,7 @@ struct pda_power_pdata {
|
||||
|
||||
unsigned int wait_for_status; /* msecs, default is 500 */
|
||||
unsigned int wait_for_charger; /* msecs, default is 500 */
|
||||
unsigned int polling_interval; /* msecs, default is 2000 */
|
||||
};
|
||||
|
||||
#endif /* __PDA_POWER_H__ */
|
||||
|
||||
@@ -54,15 +54,7 @@ enum {
|
||||
POWER_SUPPLY_TECHNOLOGY_LIPO,
|
||||
POWER_SUPPLY_TECHNOLOGY_LiFe,
|
||||
POWER_SUPPLY_TECHNOLOGY_NiCd,
|
||||
};
|
||||
|
||||
enum {
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN = 0,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_CRITICAL,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_LOW,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_NORMAL,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_HIGH,
|
||||
POWER_SUPPLY_CAPACITY_LEVEL_FULL,
|
||||
POWER_SUPPLY_TECHNOLOGY_LiMn,
|
||||
};
|
||||
|
||||
enum power_supply_property {
|
||||
@@ -72,6 +64,8 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_PRESENT,
|
||||
POWER_SUPPLY_PROP_ONLINE,
|
||||
POWER_SUPPLY_PROP_TECHNOLOGY,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MAX,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MIN,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MAX_DESIGN,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MIN_DESIGN,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_NOW,
|
||||
@@ -91,7 +85,6 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_ENERGY_NOW,
|
||||
POWER_SUPPLY_PROP_ENERGY_AVG,
|
||||
POWER_SUPPLY_PROP_CAPACITY, /* in percents! */
|
||||
POWER_SUPPLY_PROP_CAPACITY_LEVEL,
|
||||
POWER_SUPPLY_PROP_TEMP,
|
||||
POWER_SUPPLY_PROP_TEMP_AMBIENT,
|
||||
POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW,
|
||||
|
||||
Reference in New Issue
Block a user