]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
hwmon/lm87: Disable VID when it should be
authorJean Delvare <khali@linux-fr.org>
Sun, 9 Dec 2007 17:57:37 +0000 (18:57 +0100)
committerAdrian Bunk <bunk@kernel.org>
Sun, 6 Jan 2008 02:18:59 +0000 (04:18 +0200)
A stupid bit shifting bug caused the VID value to be always exported
even when the hardware is configured for something different.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
drivers/hwmon/lm87.c

index 6ba34c302d8d3315f53f038af876f152d16ad055..44f27a72eebde9c935ad38b34b520a05dd1e50b3 100644 (file)
@@ -144,7 +144,7 @@ static u8 LM87_REG_TEMP_LOW[3] = { 0x3A, 0x38, 0x2C };
 #define CHAN_NO_FAN(nr)                (1 << (nr))
 #define CHAN_TEMP3             (1 << 2)
 #define CHAN_VCC_5V            (1 << 3)
-#define CHAN_NO_VID            (1 << 8)
+#define CHAN_NO_VID            (1 << 7)
 
 /*
  * Functions declaration