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:29:02 +0000 (12:29 +0100)
commit722fc45be049e8ac1712fcc8a281265db8e9e736
tree336b4dcbcc63b2722e4b8bac21b1f20491d96f44
parentfb563baa3eb8e7a15f2cff3c2695e2cca0493e69
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