hwmon (it87): Fix voltage scaling for chips with 10.9mV ADCs
authorFrank Crawford <frank@crawford.emu.id.au>
Sat, 18 Mar 2023 08:05:42 +0000 (19:05 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:47:51 +0000 (12:47 +0200)
commitf1e2ab24c4eaa10dd3f6a8680e9cac9a526137b7
tree2fc6466fb6c41b86c30a76dee4e87b89f849c799
parent5662f50cd9e93ab052a1b876c65d117e9c6e93a1
hwmon (it87): Fix voltage scaling for chips with 10.9mV ADCs

[ Upstream commit 968b66ffeb7956acc72836a7797aeb7b2444ec51 ]

Fix voltage scaling for chips that have 10.9mV ADCs, where scaling was
not performed.

Fixes: ead8080351c9 ("hwmon: (it87) Add support for IT8732F")
Signed-off-by: Frank Crawford <frank@crawford.emu.id.au>
Link: https://lore.kernel.org/r/20230318080543.1226700-2-frank@crawford.emu.id.au
[groeck: Update subject and description to focus on bug fix]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/it87.c