diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-05-13 20:55:58 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-05-28 19:25:31 +0200 |
commit | bac705abcf345c28e419157cfcd1c44032cc9db2 (patch) | |
tree | 596f722e8b96228cfefbf2345bc04f4a7b7b4879 /drivers/power | |
parent | kobject: increase allowed number of uevent variables (diff) | |
download | linux-bac705abcf345c28e419157cfcd1c44032cc9db2.tar.xz linux-bac705abcf345c28e419157cfcd1c44032cc9db2.zip |
power: supply: core: add capacity error margin property
Add a property for reporting the error margin expected
by fuel gauge chips.
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/power_supply_sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/power_supply_sysfs.c b/drivers/power/supply/power_supply_sysfs.c index d21b4e0edf38..e664774a2d1e 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(CAPACITY), POWER_SUPPLY_ATTR(CAPACITY_ALERT_MIN), POWER_SUPPLY_ATTR(CAPACITY_ALERT_MAX), + POWER_SUPPLY_ATTR(CAPACITY_ERROR_MARGIN), POWER_SUPPLY_ENUM_ATTR(CAPACITY_LEVEL), POWER_SUPPLY_ATTR(TEMP), POWER_SUPPLY_ATTR(TEMP_MAX), |