]>
Commit | Line | Data |
---|---|---|
a5dc67e6 GKH |
1 | From bb595c923bc51dff9cdd112de18deb57ac7945d2 Mon Sep 17 00:00:00 2001 |
2 | From: Roger Blofeld <blofeldus@yahoo.com> | |
3 | Date: Sun, 10 Jan 2010 20:52:32 +0100 | |
4 | Subject: hwmon: (adt7462) Fix pin 28 monitoring | |
5 | ||
6 | From: Roger Blofeld <blofeldus@yahoo.com> | |
7 | ||
8 | commit bb595c923bc51dff9cdd112de18deb57ac7945d2 upstream. | |
9 | ||
10 | The ADT7462_PIN28_VOLT value is a 4-bit field, so the corresponding | |
11 | shift must be 4. | |
12 | ||
13 | Signed-off-by: Roger Blofeld <blofeldus@yahoo.com> | |
14 | Signed-off-by: Jean Delvare <khali@linux-fr.org> | |
15 | Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> | |
16 | ||
17 | --- | |
18 | drivers/hwmon/adt7462.c | 2 +- | |
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
20 | ||
21 | --- a/drivers/hwmon/adt7462.c | |
22 | +++ b/drivers/hwmon/adt7462.c | |
23 | @@ -97,7 +97,7 @@ I2C_CLIENT_INSMOD_1(adt7462); | |
24 | #define ADT7462_PIN24_SHIFT 6 | |
25 | #define ADT7462_PIN26_VOLT_INPUT 0x08 | |
26 | #define ADT7462_PIN25_VOLT_INPUT 0x20 | |
27 | -#define ADT7462_PIN28_SHIFT 6 /* cfg3 */ | |
28 | +#define ADT7462_PIN28_SHIFT 4 /* cfg3 */ | |
29 | #define ADT7462_PIN28_VOLT 0x5 | |
30 | ||
31 | #define ADT7462_REG_ALARM1 0xB8 |