hwmon/lm87: Disable VID when it should be
PATCH 1/1 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]>
--- drivers/hwmon/lm87.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/lm87.c +1 -1
@@ -146,7 +146,7 @@ static u8 LM87_REG_TEMP_LOW[3] = { 0x3A,#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
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi:
Quoted 7 lines · Jean Delvare
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]>--- drivers/hwmon/lm87.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to hwmon-2.6.git/testing, thanks.
Signature · 8 lines
Mark M. Hoffman [email protected] _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors