sc520_wdt.c (c95baf12f5077419db01313ab61c2aac007d40cd) | sc520_wdt.c (bd490f8222510dea748b495a502910119060e869) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * AMD Elan SC520 processor 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 --- 307 unchanged lines hidden (view full) --- 316 if (get_user(new_timeout, p)) 317 return -EFAULT; 318 319 if (wdt_set_heartbeat(new_timeout)) 320 return -EINVAL; 321 322 wdt_keepalive(); 323 } | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * AMD Elan SC520 processor 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 --- 307 unchanged lines hidden (view full) --- 316 if (get_user(new_timeout, p)) 317 return -EFAULT; 318 319 if (wdt_set_heartbeat(new_timeout)) 320 return -EINVAL; 321 322 wdt_keepalive(); 323 } |
324 /* Fall through */ | 324 fallthrough; |
325 case WDIOC_GETTIMEOUT: 326 return put_user(timeout, p); 327 default: 328 return -ENOTTY; 329 } 330} 331 332static const struct file_operations wdt_fops = { --- 99 unchanged lines hidden --- | 325 case WDIOC_GETTIMEOUT: 326 return put_user(timeout, p); 327 default: 328 return -ENOTTY; 329 } 330} 331 332static const struct file_operations wdt_fops = { --- 99 unchanged lines hidden --- |