power: supply: generic-adc-battery: fix unit scaling
stable inclusion from stable-v5.10.180 commit 391fbf0d081d23a9919cb7f3a7aa649455991e3f category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=391fbf0d081d23a9919cb7f3a7aa649455991e3f -------------------------------- [ 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> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment