]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.31.12/hwmon-adt7462-fix-pin-28-monitoring.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.31.12 / hwmon-adt7462-fix-pin-28-monitoring.patch
CommitLineData
a5dc67e6
GKH
1From bb595c923bc51dff9cdd112de18deb57ac7945d2 Mon Sep 17 00:00:00 2001
2From: Roger Blofeld <blofeldus@yahoo.com>
3Date: Sun, 10 Jan 2010 20:52:32 +0100
4Subject: hwmon: (adt7462) Fix pin 28 monitoring
5
6From: Roger Blofeld <blofeldus@yahoo.com>
7
8commit bb595c923bc51dff9cdd112de18deb57ac7945d2 upstream.
9
10The ADT7462_PIN28_VOLT value is a 4-bit field, so the corresponding
11shift must be 4.
12
13Signed-off-by: Roger Blofeld <blofeldus@yahoo.com>
14Signed-off-by: Jean Delvare <khali@linux-fr.org>
15Signed-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