linux-stable/drivers/power
Sebastian Reichel 3d7c6f2076 power: supply: generic-adc-battery: fix unit scaling
[ Upstream commit 44263f5006 ]

power-supply properties are reported in µV, µA and µW.
The IIO API provides mV, mA, mW, so the values need to
be multiplied by 1000.

Fixes: e60fea794e ("power: battery: Generic battery driver using IIO")
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:00:36 +09:00
..
reset power/reset: arm-versatile: Fix refcount leak in versatile_reboot_probe 2022-07-29 17:25:10 +02:00
supply power: supply: generic-adc-battery: fix unit scaling 2023-05-11 23:00:36 +09:00
Kconfig
Makefile