Re: [PATCH] iio: adc: axp20x_adc: fix charging current reporting on AXP22x

2021-03-07 Thread Jonathan Cameron
On Sun, 7 Mar 2021 02:52:38 +0300 Evgeny Boger wrote: > Both the charging and discharging currents on AXP22x are stored as > 12-bit integers, in accordance with the datasheet. > It's also confirmed by vendor BSP (axp20x_adc.c:axp22_icharge_to_mA). > > The scale factor of 0.5 is never mentioned

[PATCH] iio: adc: axp20x_adc: fix charging current reporting on AXP22x

2021-03-06 Thread Evgeny Boger
Both the charging and discharging currents on AXP22x are stored as 12-bit integers, in accordance with the datasheet. It's also confirmed by vendor BSP (axp20x_adc.c:axp22_icharge_to_mA). The scale factor of 0.5 is never mentioned in datasheet, nor in the vendor source code. I think it was here