]> git.karo-electronics.de Git - mv-sheeva.git/commit
power_supply: Add a charge_type property, and use it for olpc driver
authorAndres Salomon <dilinger@collabora.co.uk>
Thu, 2 Jul 2009 13:45:18 +0000 (09:45 -0400)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 2 Jul 2009 14:14:37 +0000 (18:14 +0400)
commitee8076ed3e1cdd0cd1e61318386932669c90b92f
tree0ca72268b6c91a2a07920c93558ea70c32479845
parent144bbeaedc53290eab21da82ce1cb5faefd14374
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>
Documentation/power/power_supply_class.txt
drivers/power/olpc_battery.c
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h