ChangeSet 1.2321.1.5, 2005/03/31 14:06:28-08:00, [EMAIL PROTECTED]
[PATCH] I2C: Fix adm1021 alarms mask
This patch fixes an incorrect bitmasking on the status register in the
adm1021 driver, which was causing high alarm on remote temperature to be
hidden.
This bug was found and reported by Jayakrishnan:
http://bugzilla.kernel.org/show_bug.cgi?id=4285
Signed-off-by: Jean Delvare <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
adm1021.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Nru a/drivers/i2c/chips/adm1021.c b/drivers/i2c/chips/adm1021.c
--- a/drivers/i2c/chips/adm1021.c 2005-03-31 18:08:44 -08:00
+++ b/drivers/i2c/chips/adm1021.c 2005-03-31 18:08:44 -08:00
@@ -368,7 +368,7 @@
data->remote_temp_input = adm1021_read_value(client,
ADM1021_REG_REMOTE_TEMP);
data->remote_temp_max = adm1021_read_value(client,
ADM1021_REG_REMOTE_TOS_R);
data->remote_temp_hyst = adm1021_read_value(client,
ADM1021_REG_REMOTE_THYST_R);
- data->alarms = adm1021_read_value(client, ADM1021_REG_STATUS) &
0xec;
+ data->alarms = adm1021_read_value(client, ADM1021_REG_STATUS) &
0x7c;
if (data->type == adm1021)
data->die_code = adm1021_read_value(client,
ADM1021_REG_DIE_CODE);
if (data->type == adm1023) {
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html