power: supply: bq24190_charger: Add power_supply_battery_info support
authorLiam Breck <kernel@networkimprov.net>
Mon, 28 Aug 2017 21:23:49 +0000 (14:23 -0700)
committerSebastian Reichel <sre@kernel.org>
Tue, 29 Aug 2017 21:08:39 +0000 (23:08 +0200)
commit14e1a131b5ebc4ed7d166f08d1a669d4ce6d2760
tree30f2c0940c72a7b5fc5e519c6d1b1b08f01e8469
parent8412a5bea72a787a170d5cc6902d0b8e8514c010
power: supply: bq24190_charger: Add power_supply_battery_info support

Set pre-charge and charge-term current, obtained from power_supply_battery_info.
Add sysfs attributes precharge_current & charge_term_current.

Cc: Hans de Goede <hdegoede@redhat.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Liam Breck <kernel@networkimprov.net>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/bq24190_charger.c