power: supply: max17042_battery: Improve accuracy of current_now and current_avg...
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Wed, 25 Nov 2020 04:46:17 +0000 (05:46 +0100)
committerSebastian Reichel <sre@kernel.org>
Mon, 30 Nov 2020 00:14:42 +0000 (01:14 +0100)
commit9e39ef148777727360dabebacd70d60f3e0edc48
treef373775d4cc56d435520090dba0bde99d3063186
parent4b0a56e692503692da6555337a697c17feabbb3e
power: supply: max17042_battery: Improve accuracy of current_now and current_avg readings

Dividing 1562500 by r_sns value usually doesn't result in an integer.

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