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 <[email protected]>
Signed-off-by: Mark M. Hoffman <[email protected]>
This commit is contained in:
Jean Delvare 2007-10-08 22:48:10 +02:00 • committed by Mark M. Hoffman
commit 889af3d5d9

View file

@ -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