hwmon: (lm90) Add support for additional chip revision of NCT1008
authorGuenter Roeck <linux@roeck-us.net>
Tue, 21 Dec 2021 01:02:36 +0000 (17:02 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 13 Jul 2022 15:38:17 +0000 (08:38 -0700)
commitd277fbd53d9d0cd6fc35a8d9003b2e2176fb4948
treecf90bdb2581622622119b3364c035f9769d7e091
parentc7cebce984a24cb2f6d5acfd404bd4629a2ca5fa
hwmon: (lm90) Add support for additional chip revision of NCT1008

The NCT1008 datasheet, Revision 3, states that its chip revision is
0x57. This matches the ADT7461A chip revision, and NCT1008 is therefore
detected as ADT7461A. In revision 6 of the datasheet, the chip revision
register is no longer documented. Multiple samples of NCT1008 were found
to report a chip revision of 0x54. As it turns out, one of the patches
submitted to add NCT1008 support to the lm90 driver already included a
check for chip revision 0x54. Unfortunately, that patch never made it into
the kernel. Remedy the situation and explicitly detect chips with revision
0x54 as NCT1008.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm90.c