hwmom: (lm90) Fix citical alarm status for MAX6680/MAX6681
authorGuenter Roeck <linux@roeck-us.net>
Sat, 27 Nov 2021 06:43:39 +0000 (22:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Dec 2021 11:26:07 +0000 (12:26 +0100)
commitec1d222d37eaf6b2d2dbdcf2c4eb7903fd74fc1e
tree519f83396d72f0060a4c3964881c2d63d60f62d7
parent441d3873664d170982922c5d2fc01fa89d9439ed
hwmom: (lm90) Fix citical alarm status for MAX6680/MAX6681

commit da7dc0568491104c7acb632e9d41ddce9aaabbb1 upstream.

Tests with a real chip and a closer look into the datasheet reveals
that the local and remote critical alarm status bits are swapped for
MAX6680/MAX6681.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/lm90.c