]> git.hungrycats.org Git - linux/commitdiff
[PATCH] I2C: Spare 1 byte in lm90 driver
authorJean Delvare <khali@linux-fr.org>
Tue, 19 Oct 2004 08:14:51 +0000 (01:14 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 19 Oct 2004 08:14:51 +0000 (01:14 -0700)
I just noticed the other day that the lm90 driver uses an u16 to store
the value of the 8-bit alarms register. This is most probably due to the
fact that I originally copied the lm90 driver from the lm83 driver,
which actually has two 8-bit registers for alarms, and obviously forgot
to change the variable type.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/i2c/chips/lm90.c

index 7b262b833ff3752743b1d2b4d85d2f359268175b..67a437bc642acf8514c3a00e21891ad64dc405d2 100644 (file)
@@ -185,7 +185,7 @@ struct lm90_data {
        s16 temp_input2, temp_low2, temp_high2; /* remote, combined */
        s8 temp_crit1, temp_crit2;
        u8 temp_hyst;
-       u16 alarms; /* bitvector, combined */
+       u8 alarms; /* bitvector */
 };
 
 /*