diff options
author | Thomas Weißschuh <[email protected]> | 2022-01-05 07:42:38 +0100 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2022-01-05 11:31:18 +0100 |
commit | c8e2d921aa968bacc869a0e07baac2ff66a5d6c6 (patch) | |
tree | 2631687233940bafcbaa67cd17cb4da047813dd2 | |
parent | 998e7ea8c641fc6bbca1acd478c6824733ac9851 (diff) |
power: supply: fix charge_behaviour attribute initialization
All properties have to be added to power_supply_attrs which was missed
before.
Fixes: 1b0b6cc8030d ("power: supply: add charge_behaviour attributes")
Reported-by: Heiner Kallweit <[email protected]>
Suggested-by: Heiner Kallweit <[email protected]>
Signed-off-by: Thomas Weißschuh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
-rw-r--r-- | drivers/power/supply/power_supply_sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c index 5e3b8c15ddbe..491ffec7bf47 100644 --- a/drivers/power/supply/power_supply_sysfs.c +++ b/drivers/power/supply/power_supply_sysfs.c @@ -178,6 +178,7 @@ static struct power_supply_attr power_supply_attrs[] = { POWER_SUPPLY_ATTR(CHARGE_CONTROL_LIMIT_MAX), POWER_SUPPLY_ATTR(CHARGE_CONTROL_START_THRESHOLD), POWER_SUPPLY_ATTR(CHARGE_CONTROL_END_THRESHOLD), + POWER_SUPPLY_ENUM_ATTR(CHARGE_BEHAVIOUR), POWER_SUPPLY_ATTR(INPUT_CURRENT_LIMIT), POWER_SUPPLY_ATTR(INPUT_VOLTAGE_LIMIT), POWER_SUPPLY_ATTR(INPUT_POWER_LIMIT), |