power: supply: max17042_battery: mAh readings depend on r_sns value
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Apr 2017 18:32:55 +0000 (20:32 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 1 May 2017 10:37:45 +0000 (12:37 +0200)
commitd7d15fc67791c0e255f36345d02441c1716c2a1f
tree8f45d2f7dfc748186ff588065a41667a918b132c
parent7bfc9397ff9690fbb0da44e1a0aeab953cb73b77
power: supply: max17042_battery: mAh readings depend on r_sns value

The PROP_CHARGE_FULL code was hardcoded for the default sense
resistor of 0.010 Ohm, make it use r_sns which contains the
actual sense resistor value in micro-Ohms instead.

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