.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * W83877F Computer Watchdog Timer driver |
---|
3 | 4 | * |
---|
4 | 5 | * Based on acquirewdt.c by Alan Cox, |
---|
5 | 6 | * and sbc60xxwdt.c by Jakob Oestergaard <jakob@unthought.net> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public License |
---|
9 | | - * as published by the Free Software Foundation; either version |
---|
10 | | - * 2 of the License, or (at your option) any later version. |
---|
11 | 7 | * |
---|
12 | 8 | * The authors do NOT admit liability nor provide warranty for |
---|
13 | 9 | * any of this software. This material is provided "AS-IS" in |
---|
.. | .. |
---|
224 | 220 | |
---|
225 | 221 | /* Good, fire up the show */ |
---|
226 | 222 | wdt_startup(); |
---|
227 | | - return nonseekable_open(inode, file); |
---|
| 223 | + return stream_open(inode, file); |
---|
228 | 224 | } |
---|
229 | 225 | |
---|
230 | 226 | static int fop_close(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
292 | 288 | |
---|
293 | 289 | timeout = new_timeout; |
---|
294 | 290 | wdt_keepalive(); |
---|
295 | | - /* Fall through */ |
---|
296 | 291 | } |
---|
| 292 | + fallthrough; |
---|
297 | 293 | case WDIOC_GETTIMEOUT: |
---|
298 | 294 | return put_user(timeout, p); |
---|
299 | 295 | default: |
---|
.. | .. |
---|
308 | 304 | .open = fop_open, |
---|
309 | 305 | .release = fop_close, |
---|
310 | 306 | .unlocked_ioctl = fop_ioctl, |
---|
| 307 | + .compat_ioctl = compat_ptr_ioctl, |
---|
311 | 308 | }; |
---|
312 | 309 | |
---|
313 | 310 | static struct miscdevice wdt_miscdev = { |
---|