diff options
author | Jean Delvare <khali@linux-fr.org> | 2007-12-09 18:57:37 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@kernel.org> | 2008-01-06 04:18:59 +0200 |
commit | f28b4d6af82321ebddda7e40075f50075207fc09 (patch) | |
tree | 9ba4ec650f6f5a200c260abaae89c8e0597843c2 | |
parent | 01152da5e89872ea626683a8e0d1bcd09fab6a37 (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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
-rw-r--r-- | drivers/hwmon/lm87.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c index 6ba34c302d8..44f27a72eeb 100644 --- a/drivers/hwmon/lm87.c +++ b/drivers/hwmon/lm87.c @@ -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 |