power_supply: Add a charge_type property, and use it for olpc driver
This adds a new sysfs file called 'charge_type' which displays the type of charging (unknown, n/a, trickle charge, or fast charging). This allows things like battery diagnostics to determine what the battery/EC is doing without resorting to changing the 'status' sysfs output. Signed-off-by:Andres Salomon <dilinger@collabora.co.uk> Acked-by:
Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by:
Anton Vorontsov <cbouatmailru@gmail.com>
Showing
- Documentation/power/power_supply_class.txt 5 additions, 0 deletionsDocumentation/power/power_supply_class.txt
- drivers/power/olpc_battery.c 9 additions, 0 deletionsdrivers/power/olpc_battery.c
- drivers/power/power_supply_sysfs.c 6 additions, 0 deletionsdrivers/power/power_supply_sysfs.c
- include/linux/power_supply.h 8 additions, 0 deletionsinclude/linux/power_supply.h
Please register or sign in to comment