mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +00:00
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:
1 parent
3ac9042b13
commit
7f544464ad
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user