Skip to content

Commit c8e2d92

Browse files
t-8chjwrdegoede
authored andcommitted
power: supply: fix charge_behaviour attribute initialization
All properties have to be added to power_supply_attrs which was missed before. Fixes: 1b0b6cc ("power: supply: add charge_behaviour attributes") Reported-by: Heiner Kallweit <hkallweit1@gmail.com> Suggested-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/r/20220105064239.2689-1-linux@weissschuh.net Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 998e7ea commit c8e2d92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/supply/power_supply_sysfs.c

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ static struct power_supply_attr power_supply_attrs[] = {
178178
POWER_SUPPLY_ATTR(CHARGE_CONTROL_LIMIT_MAX),
179179
POWER_SUPPLY_ATTR(CHARGE_CONTROL_START_THRESHOLD),
180180
POWER_SUPPLY_ATTR(CHARGE_CONTROL_END_THRESHOLD),
181+
POWER_SUPPLY_ENUM_ATTR(CHARGE_BEHAVIOUR),
181182
POWER_SUPPLY_ATTR(INPUT_CURRENT_LIMIT),
182183
POWER_SUPPLY_ATTR(INPUT_VOLTAGE_LIMIT),
183184
POWER_SUPPLY_ATTR(INPUT_POWER_LIMIT),

0 commit comments

Comments
 (0)