allow setting divisor to 128

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2999 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2005-05-12 14:51:34 +00:00
1 parent 3ac9042b13
commit 7f544464ad
1 file changed
+1 -1
+1 -1
View File
@@ -216,7 +216,7 @@ static inline u8 DIV_TO_REG(long val, enum chips type)
int i;
val = SENSORS_LIMIT(val, 1,
((type == w83781d || type == as99127f) ? 8 : 128)) >> 1;
for (i = 0; i < 6; i++) {
for (i = 0; i < 7; i++) {
if (val == 0)
break;
val >>= 1;