hwmon: (nct6775) Fix non-existent ALARM warning
authorAhmad Khalifa <ahmad@khalifa.ws>
Mon, 18 Sep 2023 18:47:22 +0000 (19:47 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 18 Sep 2023 18:52:18 +0000 (11:52 -0700)
commit2dd1d862817b850787f4755c05d55e5aeb76dd08
tree92b4a676fc19f7a7aeec436fc391a347b723999e
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
hwmon: (nct6775) Fix non-existent ALARM warning

Skip non-existent ALARM attribute to avoid a shift-out-of-bounds
dmesg warning.

Reported-by: Doug Smythies <dsmythies@telus.net>
Closes: https://lore.kernel.org/linux-hwmon/ZQVzdlHgWdFhOVyQ@debian.me/T/#mc69b690660eb50734a6b07506d74a119e0266f1b
Fixes: b7f1f7b2523a ("hwmon: (nct6775) Additional TEMP registers for nct6799")
Signed-off-by: Ahmad Khalifa <ahmad@khalifa.ws>
Link: https://lore.kernel.org/r/20230918184722.2033225-1-ahmad@khalifa.ws
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775-core.c