summaryrefslogtreecommitdiff
path: root/include/linux/soc
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2023-03-17 23:56:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-17 11:13:19 +0200
commit9551abd92e411f4302103d63ddbeeb3d9b818d4c (patch)
tree8b264f9d091c707c432b60fcba2366d5bb36a243 /include/linux/soc
parent3d5ae269c4bd392ec1edbfb3bd031b8f42d7feff (diff)
power: supply: generic-adc-battery: fix unit scaling
[ Upstream commit 44263f50065969f2344808388bd589740f026167 ] 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: e60fea794e6e ("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>
Diffstat (limited to 'include/linux/soc')
0 files changed, 0 insertions, 0 deletions