]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: fix charge_behaviour attribute initialization
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 5 Jan 2022 06:42:38 +0000 (07:42 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 5 Jan 2022 10:31:18 +0000 (11:31 +0100)
commit494ce89c28fce57dd8c6465ec1a2a36734edf142
tree2631687233940bafcbaa67cd17cb4da047813dd2
parent94b5265b44674ced6fd9e58e28b683c3eea8a169
power: supply: fix charge_behaviour attribute initialization

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

Fixes: 11f402c4fd85 ("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>
drivers/power/supply/power_supply_sysfs.c