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 <[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]>
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

Lines changed: 1 addition & 0 deletions
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)