Re: [PATCH v2 2/3] power: supply: bq27xxx: fix power_avg for newer ICs

2021-03-14 Thread Sebastian Reichel
Hi, On Wed, Mar 03, 2021 at 10:54:19AM +0100, Matthias Schiffer wrote: > On all newer bq27xxx ICs, the AveragePower register contains a signed > value; in addition to handling the raw value as unsigned, the driver > code also didn't convert it to µW as expected. > > At least for the BQ28Z610,

[PATCH v2 2/3] power: supply: bq27xxx: fix power_avg for newer ICs

2021-03-03 Thread Matthias Schiffer
On all newer bq27xxx ICs, the AveragePower register contains a signed value; in addition to handling the raw value as unsigned, the driver code also didn't convert it to µW as expected. At least for the BQ28Z610, the reference manual incorrectly states that the value is in units of 1mW and not