power: supply: max17042_battery: Add support for the CHARGE_NOW property
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Apr 2017 18:32:57 +0000 (20:32 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 1 May 2017 10:37:54 +0000 (12:37 +0200)
commit6d6b61eafca94146cedf7709974a7423df16a6f1
treed98d1ca2114c4206747ea4b5248e6071adee9665
parent2e015412a320e49aab4beaeb6262e93fdc0a42f2
power: supply: max17042_battery: Add support for the CHARGE_NOW property

At least upower prefers the more precise charge_now sysfs value over
capacity and the max17042 has the info, so lets export it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/max17042_battery.c