File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -103,30 +103,29 @@ static int npcm_wdt_stop(struct watchdog_device *wdd)
103
103
return 0 ;
104
104
}
105
105
106
-
107
106
static int npcm_wdt_set_timeout (struct watchdog_device * wdd ,
108
107
unsigned int timeout )
109
108
{
110
109
if (timeout < 2 )
111
110
wdd -> timeout = 1 ;
112
111
else if (timeout < 3 )
113
- wdd -> timeout = 2 ;
112
+ wdd -> timeout = 2 ;
114
113
else if (timeout < 6 )
115
- wdd -> timeout = 5 ;
114
+ wdd -> timeout = 5 ;
116
115
else if (timeout < 11 )
117
- wdd -> timeout = 10 ;
116
+ wdd -> timeout = 10 ;
118
117
else if (timeout < 22 )
119
- wdd -> timeout = 21 ;
118
+ wdd -> timeout = 21 ;
120
119
else if (timeout < 44 )
121
- wdd -> timeout = 43 ;
120
+ wdd -> timeout = 43 ;
122
121
else if (timeout < 87 )
123
- wdd -> timeout = 86 ;
122
+ wdd -> timeout = 86 ;
124
123
else if (timeout < 173 )
125
- wdd -> timeout = 172 ;
124
+ wdd -> timeout = 172 ;
126
125
else if (timeout < 688 )
127
- wdd -> timeout = 687 ;
126
+ wdd -> timeout = 687 ;
128
127
else
129
- wdd -> timeout = 2750 ;
128
+ wdd -> timeout = 2750 ;
130
129
131
130
if (watchdog_active (wdd ))
132
131
npcm_wdt_start (wdd );
You can’t perform that action at this time.
0 commit comments