diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-05-13 21:55:58 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-05-28 20:25:31 +0300 |
commit | bac705abcf345c28e419157cfcd1c44032cc9db2 (patch) | |
tree | 596f722e8b96228cfefbf2345bc04f4a7b7b4879 /drivers/power/supply/power_supply_sysfs.c | |
parent | 655078f5f5286fe0ab38e90c4695001a0e15e9dd (diff) | |
download | linux-bac705abcf345c28e419157cfcd1c44032cc9db2.tar.xz |
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/supply/power_supply_sysfs.c')
-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), |