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)
commit2f38dc4d9190cd97b8ceb88be5b835ee5feb44d1
tree64275111227320e61d74bf0a27ee35ec2f9bcc1e
parentccf193dee1f0fff55b556928591f7818bac1b3b1
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