w83877f_wdt.c (c95baf12f5077419db01313ab61c2aac007d40cd) w83877f_wdt.c (bd490f8222510dea748b495a502910119060e869)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * W83877F Computer Watchdog Timer driver
4 *
5 * Based on acquirewdt.c by Alan Cox,
6 * and sbc60xxwdt.c by Jakob Oestergaard <jakob@unthought.net>
7 *
8 * The authors do NOT admit liability nor provide warranty for

--- 275 unchanged lines hidden (view full) ---

284
285 /* arbitrary upper limit */
286 if (new_timeout < 1 || new_timeout > 3600)
287 return -EINVAL;
288
289 timeout = new_timeout;
290 wdt_keepalive();
291 }
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * W83877F Computer Watchdog Timer driver
4 *
5 * Based on acquirewdt.c by Alan Cox,
6 * and sbc60xxwdt.c by Jakob Oestergaard <jakob@unthought.net>
7 *
8 * The authors do NOT admit liability nor provide warranty for

--- 275 unchanged lines hidden (view full) ---

284
285 /* arbitrary upper limit */
286 if (new_timeout < 1 || new_timeout > 3600)
287 return -EINVAL;
288
289 timeout = new_timeout;
290 wdt_keepalive();
291 }
292 /* Fall through */
292 fallthrough;
293 case WDIOC_GETTIMEOUT:
294 return put_user(timeout, p);
295 default:
296 return -ENOTTY;
297 }
298}
299
300static const struct file_operations wdt_fops = {

--- 105 unchanged lines hidden ---
293 case WDIOC_GETTIMEOUT:
294 return put_user(timeout, p);
295 default:
296 return -ENOTTY;
297 }
298}
299
300static const struct file_operations wdt_fops = {

--- 105 unchanged lines hidden ---