[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220105064239.2689-1-linux@weissschuh.net>
Date: Wed, 5 Jan 2022 07:42:38 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Heiner Kallweit <hkallweit1@...il.com>,
Sebastian Reichel <sre@...nel.org>,
Hans de Goede <hdegoede@...hat.com>
Cc: Thomas Weißschuh <linux@...ssschuh.net>,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] 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 <hkallweit1@...il.com>
Suggested-by: Heiner Kallweit <hkallweit1@...il.com>
Signed-off-by: Thomas Weißschuh <linux@...ssschuh.net>
---
drivers/power/supply/power_supply_sysfs.c | 1 +
1 file changed, 1 insertion(+)
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),
base-commit: 998e7ea8c641fc6bbca1acd478c6824733ac9851
--
2.34.1
Powered by blists - more mailing lists