Skip to content

Commit 889af3d

Browse files
Jean DelvareMark M. Hoffman
authored andcommitted
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]>
1 parent 7d4a137 commit 889af3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hwmon/lm87.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static u8 LM87_REG_TEMP_LOW[3] = { 0x3A, 0x38, 0x2C };
146146
#define CHAN_NO_FAN(nr) (1 << (nr))
147147
#define CHAN_TEMP3 (1 << 2)
148148
#define CHAN_VCC_5V (1 << 3)
149-
#define CHAN_NO_VID (1 << 8)
149+
#define CHAN_NO_VID (1 << 7)
150150

151151
/*
152152
* Functions declaration

0 commit comments

Comments
 (0)