projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ddca933
)
hwmon: Fix the VRD 11 decoding
author
Jean Delvare
<khali@linux-fr.org>
Thu, 18 Jan 2007 21:14:23 +0000
(22:14 +0100)
committer
Jean Delvare
<khali@arrakis.delvare>
Thu, 18 Jan 2007 21:14:23 +0000
(22:14 +0100)
I wonder how we came up with such a broken test in the first place.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/hwmon-vid.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/hwmon-vid.c
b/drivers/hwmon/hwmon-vid.c
index 31c42002708f9ee050235778e7147be234acdf22..b80f6ed5acfc9897f6e370c1dc3083caaacb6134 100644
(file)
--- a/
drivers/hwmon/hwmon-vid.c
+++ b/
drivers/hwmon/hwmon-vid.c
@@
-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 */