From: Jean Delvare Date: Mon, 8 Oct 2007 20:48:10 +0000 (+0200) Subject: hwmon: (lm87) Disable VID when it should be X-Git-Tag: v2.6.24-rc1~1299^2~11 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=889af3d5d9586db795a06c619e416b4baee11da8;p=linux-2.6 hwmon: (lm87) Disable VID when it should be 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 Signed-off-by: Mark M. Hoffman --- diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c index 7f806a0589..28cdff0c55 100644 --- a/drivers/hwmon/lm87.c +++ b/drivers/hwmon/lm87.c @@ -146,7 +146,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