diff options
author | Roger Blofeld <blofeldus@yahoo.com> | 2010-01-10 20:52:32 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-01-18 10:28:47 -0800 |
commit | fb99d026f4d9392ff9979beb26b5800188a56891 (patch) | |
tree | 92ffec6b7aa7ffa9b93a54212e997cf4d352d64d /drivers | |
parent | 41b324e3dd32ce8418e661f9e16149a6ec5b76ce (diff) | |
download | lwn-fb99d026f4d9392ff9979beb26b5800188a56891.tar.gz lwn-fb99d026f4d9392ff9979beb26b5800188a56891.zip |
hwmon: (adt7462) Fix pin 28 monitoring
commit bb595c923bc51dff9cdd112de18deb57ac7945d2 upstream.
The ADT7462_PIN28_VOLT value is a 4-bit field, so the corresponding
shift must be 4.
Signed-off-by: Roger Blofeld <blofeldus@yahoo.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/adt7462.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/adt7462.c b/drivers/hwmon/adt7462.c index 1852f27bac51..262c133048ce 100644 --- a/drivers/hwmon/adt7462.c +++ b/drivers/hwmon/adt7462.c @@ -97,7 +97,7 @@ I2C_CLIENT_INSMOD_1(adt7462); #define ADT7462_PIN24_SHIFT 6 #define ADT7462_PIN26_VOLT_INPUT 0x08 #define ADT7462_PIN25_VOLT_INPUT 0x20 -#define ADT7462_PIN28_SHIFT 6 /* cfg3 */ +#define ADT7462_PIN28_SHIFT 4 /* cfg3 */ #define ADT7462_PIN28_VOLT 0x5 #define ADT7462_REG_ALARM1 0xB8 |