Commit d841b717 authored by Sebastian Reichel's avatar Sebastian Reichel Committed by sanglipeng
Browse files

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: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent c1dfe81c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment