]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: max17040: Config alert SOC low level threshold from FDT
authorMatheus Castello <matheus@castello.eng.br>
Thu, 5 Dec 2019 15:44:09 +0000 (12:44 -0300)
committerSebastian Reichel <sre@kernel.org>
Thu, 19 Dec 2019 00:51:52 +0000 (01:51 +0100)
commitcccdd0ca1c0d985c3cf1dfe65a3b42387a6e3d22
tree1370492d9ea552d4e13a35dae15bc126c8c4c39b
parent2e17ed94de68953b17ed91b64f4bd176cdf38ad4
power: supply: max17040: Config alert SOC low level threshold from FDT

For configuration of fuel gauge alert for a low level state of charge
interrupt we add a function to config level threshold and a device tree
binding property to set it in flatned device tree node.

Now we can use "maxim,alert-low-soc-level" property with the values from
1% up to 32% to configure alert interrupt threshold.

Signed-off-by: Matheus Castello <matheus@castello.eng.br>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17040_battery.c