Commit c8e2d921 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Hans de Goede

power: supply: fix charge_behaviour attribute initialization

All properties have to be added to power_supply_attrs which was missed
before.

Fixes: 1b0b6cc8 ("power: supply: add charge_behaviour attributes")
Reported-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Suggested-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20220105064239.2689-1-linux@weissschuh.netSigned-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 998e7ea8
......@@ -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),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment