We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f742386 commit cf756a7Copy full SHA for cf756a7
drivers/watchdog/f71808e_wdt.c
@@ -225,15 +225,17 @@ static int watchdog_set_timeout(int timeout)
225
226
mutex_lock(&watchdog.lock);
227
228
- watchdog.timeout = timeout;
229
if (timeout > 0xff) {
230
watchdog.timer_val = DIV_ROUND_UP(timeout, 60);
231
watchdog.minutes_mode = true;
+ timeout = watchdog.timer_val * 60;
232
} else {
233
watchdog.timer_val = timeout;
234
watchdog.minutes_mode = false;
235
}
236
237
+ watchdog.timeout = timeout;
238
+
239
mutex_unlock(&watchdog.lock);
240
241
return 0;
0 commit comments