.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * W83977F Watchdog Timer Driver for Winbond W83977F I/O Chip |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * and wdt977.c by Woody Suwalski |
---|
8 | 9 | * |
---|
9 | 10 | * ----------------------- |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or |
---|
12 | | - * modify it under the terms of the GNU General Public License |
---|
13 | | - * as published by the Free Software Foundation; either version |
---|
14 | | - * 2 of the License, or (at your option) any later version. |
---|
15 | | - * |
---|
16 | 11 | */ |
---|
17 | 12 | |
---|
18 | 13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
298 | 293 | __module_get(THIS_MODULE); |
---|
299 | 294 | |
---|
300 | 295 | wdt_start(); |
---|
301 | | - return nonseekable_open(inode, file); |
---|
| 296 | + return stream_open(inode, file); |
---|
302 | 297 | } |
---|
303 | 298 | |
---|
304 | 299 | static int wdt_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
427 | 422 | return -EINVAL; |
---|
428 | 423 | |
---|
429 | 424 | wdt_keepalive(); |
---|
430 | | - /* Fall through */ |
---|
| 425 | + fallthrough; |
---|
431 | 426 | |
---|
432 | 427 | case WDIOC_GETTIMEOUT: |
---|
433 | 428 | return put_user(timeout, uarg.i); |
---|
.. | .. |
---|
451 | 446 | .llseek = no_llseek, |
---|
452 | 447 | .write = wdt_write, |
---|
453 | 448 | .unlocked_ioctl = wdt_ioctl, |
---|
| 449 | + .compat_ioctl = compat_ptr_ioctl, |
---|
454 | 450 | .open = wdt_open, |
---|
455 | 451 | .release = wdt_release, |
---|
456 | 452 | }; |
---|