Guenter Roeck bc29bc14c2 hwmon: (max6697) Fix swapped temp{1,8} critical alarms
[ Upstream commit 1ea3fd1eb9869fcdcbc9c68f9728bfc47b9503f1 ]

The critical alarm bit for the local temperature sensor (temp1) is in
bit 7 of register 0x45 (not bit 6), and the critical alarm bit for remote
temperature sensor 7 (temp8) is in bit 6 (not bit 7).

This only affects MAX6581 since all other chips supported by this driver
do not support those critical alarms.

Fixes: 5372d2d71c46 ("hwmon: Driver for Maxim MAX6697 and compatibles")
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:59:15 +02:00
..
2023-12-11 06:21:01 -08:00
2024-05-14 14:51:51 -07:00
2024-05-14 14:51:51 -07:00
2024-03-07 09:17:40 -08:00
2023-04-27 11:53:57 -07:00
2024-05-03 09:20:04 -07:00
2024-01-08 07:26:34 -08:00
2024-02-25 12:37:10 -08:00
2024-05-03 09:20:04 -07:00
2023-10-31 17:44:17 -10:00