allow setting fan divisor to 128. patch from Jarkko Lavinen

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2997 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2005-05-11 17:17:21 +00:00
1 parent 47b1344e9a
commit 286deec334
1 file changed
+1 -1
+1 -1
View File
@@ -269,7 +269,7 @@ static inline u8 DIV_TO_REG(long val)
{
int i;
val = SENSORS_LIMIT(val, 1, 128) >> 1;
for (i = 0; i < 6; i++) {
for (i = 0; i < 7; i++) {
if (val == 0)
break;
val >>= 1;