]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: max17040: Add POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN
authorMatheus Castello <matheus@castello.eng.br>
Mon, 6 Jul 2020 00:10:03 +0000 (21:10 -0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 28 Jul 2020 00:15:58 +0000 (02:15 +0200)
commit79c43663631017b771a3980c3a792dbd132bc2c1
tree64275111227320e61d74bf0a27ee35ec2f9bcc1e
parent2440a4b2f8967f7928e139c1b64b6d4defe19e5b
power: supply: max17040: Add POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN

Adds the property POWER_SUPPLY_PROP_CAPACITY_ALERT_MIN to export the
chip->low_soc_alert and add the property as writeable, implementing
max17040_prop_writeable and max17040_set_property, so with that the
user space can readjust the alerts.

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