提交 9fab2d8b 编写于 作者: J Jean Delvare 提交者: Jean Delvare

hwmon: Fix the VRD 11 decoding

I wonder how we came up with such a broken test in the first place.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
上级 ddca933b
......@@ -93,7 +93,7 @@ int vid_from_reg(int val, u8 vrm)
case 110: /* Intel Conroe */
/* compute in uV, round to mV */
val &= 0xff;
if(((val & 0x7e) == 0xfe) || (!(val & 0x7e)))
if (val < 0x02 || val > 0xb2)
return 0;
return((1600000 - (val - 2) * 6250 + 500) / 1000);
case 24: /* Opteron processor */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册