Re: [RFC PATCH 2/2] power: supply: add sw-gauge for SOC estimation and CC correction

2020-11-27 Thread Vaittinen, Matti
On Thu, 2020-11-26 at 12:13 +0200, Matti Vaittinen wrote: > Add generic 'sw gauge' helper for performing iterative SOC estimation > and coulomb counter correction for devices with a (drifting) coulomb > counter. This should allow few charger/fuel-gauge drivers to use > generic > loop instead of

[RFC PATCH 2/2] power: supply: add sw-gauge for SOC estimation and CC correction

2020-11-26 Thread Matti Vaittinen
Add generic 'sw gauge' helper for performing iterative SOC estimation and coulomb counter correction for devices with a (drifting) coulomb counter. This should allow few charger/fuel-gauge drivers to use generic loop instead of implementing their own. Charger/fuel-gauge drivers can register