summaryrefslogtreecommitdiff
path: root/drivers/power/supply/ipaq_micro_battery.c
diff options
context:
space:
mode:
authorLiam Breck <kernel@networkimprov.net>2017-04-17 02:06:26 +0300
committerSebastian Reichel <sre@kernel.org>2017-05-01 12:52:15 +0300
commit1eb2869b3c90f4e7971515ddbe92f9e0d18827f5 (patch)
treef6d20000d5fd1610a99562c05ede944a23a8e0f3 /drivers/power/supply/ipaq_micro_battery.c
parent2848e039c562a5278cd2ebc5b005c0f1a381b34e (diff)
downloadlinux-1eb2869b3c90f4e7971515ddbe92f9e0d18827f5.tar.xz
power: supply: bq24190_charger: Deprecate battery class and replicate its features in charger
The driver was registering two classes, bq24190-battery & -charger. Because the power supply framework cannot surface features from multiple drivers in a single class, a fuel gauge driver would create a third class, which some power management utilities cannot see. Deprecate the -battery class for future removal and replicate its features in -charger. Set /sys/class...-charger/online = pg_stat && !batfet_disable. If device_property "omit-battery-class" is set, don't register -battery. Cc: Tony Lindgren <tony@atomide.com> Cc: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Liam Breck <kernel@networkimprov.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers/power/supply/ipaq_micro_battery.c')
0 files changed, 0 insertions, 0 deletions