power: supply: generic-adc-battery: fix unit scaling
[ Upstream commit 44263f50 ] 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: e60fea79 ("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>
Loading
Please register or sign in to comment