diff options
author | Liam Breck <kernel@networkimprov.net> | 2017-04-17 02:06:26 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-05-01 12:52:15 +0300 |
commit | 1eb2869b3c90f4e7971515ddbe92f9e0d18827f5 (patch) | |
tree | f6d20000d5fd1610a99562c05ede944a23a8e0f3 /drivers/power/supply/ipaq_micro_battery.c | |
parent | 2848e039c562a5278cd2ebc5b005c0f1a381b34e (diff) | |
download | linux-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