hwmon: (nct7802) Fix voltage limits to wrong registers
authorGilles Buloz <gilles.buloz@kontron.com>
Wed, 27 Nov 2019 17:09:34 +0000 (18:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 15:43:21 +0000 (16:43 +0100)
commit7bf1558012e06f54bb65b084424255c68f0f5e41
tree7679c879f6d9aebac53ef91d6085e53ab214bcc3
parent666a530b2e022bc4bd90fe1770f75fae9b1c15b9
hwmon: (nct7802) Fix voltage limits to wrong registers

commit 7713e62c8623c54dac88d1fa724aa487a38c3efb upstream.

in0 thresholds are written to the in2 thresholds registers
in2 thresholds to in3 thresholds
in3 thresholds to in4 thresholds
in4 thresholds to in0 thresholds

Signed-off-by: Gilles Buloz <gilles.buloz@kontron.com>
Link: https://lore.kernel.org/r/5de0f509.rc0oEvPOMjbfPW1w%gilles.buloz@kontron.com
Fixes: 3434f3783580 ("hwmon: Driver for Nuvoton NCT7802Y")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/nct7802.c