aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm87.c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2007-10-08 16:48:10 -0400
committerMark M. Hoffman <mhoffman@lightlink.com>2007-10-09 22:56:32 -0400
commit889af3d5d9586db795a06c619e416b4baee11da8 (patch)
treeb52778c9da75e43e9bf629403596f50ae22fccdd /drivers/hwmon/lm87.c
parent7d4a137491d96927ffca5e8557c328902a2d4de9 (diff)
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 <khali@linux-fr.org> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers/hwmon/lm87.c')
-rw-r--r--drivers/hwmon/lm87.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c
index 7f806a05890d..28cdff0c556b 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 };
146#define CHAN_NO_FAN(nr) (1 << (nr)) 146#define CHAN_NO_FAN(nr) (1 << (nr))
147#define CHAN_TEMP3 (1 << 2) 147#define CHAN_TEMP3 (1 << 2)
148#define CHAN_VCC_5V (1 << 3) 148#define CHAN_VCC_5V (1 << 3)
149#define CHAN_NO_VID (1 << 8) 149#define CHAN_NO_VID (1 << 7)
150 150
151/* 151/*
152 * Functions declaration 152 * Functions declaration