power: supply: max17042_battery: Take r_sns value into account in charge_counter
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Wed, 25 Nov 2020 04:47:04 +0000 (05:47 +0100)
committerSebastian Reichel <sre@kernel.org>
Mon, 30 Nov 2020 00:14:42 +0000 (01:14 +0100)
commit6dcfa009f8a96273f074032c888409ee2b26f498
tree652fab7e03a584abe3b6a351ec2dd7ceeb5dd257
parent9e39ef148777727360dabebacd70d60f3e0edc48
power: supply: max17042_battery: Take r_sns value into account in charge_counter

The default r_sns value was hardcoded there, so let's change it to the
actually configured one.

Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17042_battery.c