]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: sc27xx: Allow to change the battery full capacity
authorYuanjiang Yu <yuanjiang.yu@unisoc.com>
Mon, 20 Apr 2020 03:42:05 +0000 (11:42 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 28 Apr 2020 19:24:06 +0000 (21:24 +0200)
commit98a750b7bf170c219390f3552be4e2cd62cd3fdc
treeebc1f549929745746a060bb5501c8b533726528f
parent696432171c3026db66aaace382b7b4b16465cdab
power: supply: sc27xx: Allow to change the battery full capacity

The battery full capacity can be affected by the temperature or the
servicing time or other factors, so some platforms will track the
real battery full capacity in charger manager service. Thus we should
allow to change the battery full capacity by setting the
'POWER_SUPPLY_PROP_ENERGY_FULL_DESIGN' property as writeable.

Signed-off-by: Yuanjiang Yu <yuanjiang.yu@unisoc.com>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sc27xx_fuel_gauge.c