wafer5823wdt.c (c95baf12f5077419db01313ab61c2aac007d40cd) | wafer5823wdt.c (bd490f8222510dea748b495a502910119060e869) |
---|---|
1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * ICP Wafer 5823 Single Board Computer WDT driver 4 * http://www.icpamerica.com/wafer_5823.php 5 * May also work on other similar models 6 * 7 * (c) Copyright 2002 Justin Cormack <justin@street-vision.com> 8 * --- 160 unchanged lines hidden (view full) --- 169 case WDIOC_SETTIMEOUT: 170 if (get_user(new_timeout, p)) 171 return -EFAULT; 172 if ((new_timeout < 1) || (new_timeout > 255)) 173 return -EINVAL; 174 timeout = new_timeout; 175 wafwdt_stop(); 176 wafwdt_start(); | 1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * ICP Wafer 5823 Single Board Computer WDT driver 4 * http://www.icpamerica.com/wafer_5823.php 5 * May also work on other similar models 6 * 7 * (c) Copyright 2002 Justin Cormack <justin@street-vision.com> 8 * --- 160 unchanged lines hidden (view full) --- 169 case WDIOC_SETTIMEOUT: 170 if (get_user(new_timeout, p)) 171 return -EFAULT; 172 if ((new_timeout < 1) || (new_timeout > 255)) 173 return -EINVAL; 174 timeout = new_timeout; 175 wafwdt_stop(); 176 wafwdt_start(); |
177 /* Fall through */ | 177 fallthrough; |
178 case WDIOC_GETTIMEOUT: 179 return put_user(timeout, p); 180 181 default: 182 return -ENOTTY; 183 } 184 return 0; 185} --- 138 unchanged lines hidden --- | 178 case WDIOC_GETTIMEOUT: 179 return put_user(timeout, p); 180 181 default: 182 return -ENOTTY; 183 } 184 return 0; 185} --- 138 unchanged lines hidden --- |