mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-02 13:30:30 +00:00
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:
1 parent
47b1344e9a
commit
286deec334
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user