]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: max17040: Support setting rcomp
authorIskren Chernev <iskren.chernev@gmail.com>
Tue, 22 Sep 2020 11:42:36 +0000 (14:42 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 3 Oct 2020 17:18:28 +0000 (19:18 +0200)
commitc1c7e9b84ed9898ad12432635e255aad32ad8f36
treebd57ea17ce24d44871345b799226f28136cb2c7b
parente50982f9eb7ad4106e70bd9b3a74c063da42727b
power: supply: max17040: Support setting rcomp

The Maxim ModelGauge family supports fine-tuning by setting
a compensation value (named rcomp in the docs). The value is affected by
battery chemistry and ambient temperature.

Add support for reading maxim,rcomp from DT and configuring the device
with the supplied value. Temperature adjustment is not implemented at
the moment, because there is no provision for receiving the ambient
temperature at the moment.

Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
Tested-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17040_battery.c