.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
---|
1 | 2 | /* |
---|
2 | 3 | * NS pc87413-wdt Watchdog Timer driver for Linux 2.6.x.x |
---|
3 | 4 | * |
---|
.. | .. |
---|
5 | 6 | * |
---|
6 | 7 | * (C) Copyright 2006 Sven Anders, <anders@anduras.de> |
---|
7 | 8 | * and Marcus Junker, <junker@anduras.de> |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or |
---|
10 | | - * modify it under the terms of the GNU General Public License |
---|
11 | | - * as published by the Free Software Foundation; either version |
---|
12 | | - * 2 of the License, or (at your option) any later version. |
---|
13 | 9 | * |
---|
14 | 10 | * Neither Sven Anders, Marcus Junker nor ANDURAS AG |
---|
15 | 11 | * admit liability nor provide warranty for any of this software. |
---|
.. | .. |
---|
286 | 282 | |
---|
287 | 283 | pr_info("Watchdog enabled. Timeout set to %d minute(s).\n", timeout); |
---|
288 | 284 | |
---|
289 | | - return nonseekable_open(inode, file); |
---|
| 285 | + return stream_open(inode, file); |
---|
290 | 286 | } |
---|
291 | 287 | |
---|
292 | 288 | /** |
---|
.. | .. |
---|
437 | 433 | return -EINVAL; |
---|
438 | 434 | timeout = new_timeout; |
---|
439 | 435 | pc87413_refresh(); |
---|
440 | | - /* fall through and return the new timeout... */ |
---|
| 436 | + fallthrough; /* and return the new timeout */ |
---|
441 | 437 | case WDIOC_GETTIMEOUT: |
---|
442 | 438 | new_timeout = timeout * 60; |
---|
443 | 439 | return put_user(new_timeout, uarg.i); |
---|
.. | .. |
---|
477 | 473 | .llseek = no_llseek, |
---|
478 | 474 | .write = pc87413_write, |
---|
479 | 475 | .unlocked_ioctl = pc87413_ioctl, |
---|
| 476 | + .compat_ioctl = compat_ptr_ioctl, |
---|
480 | 477 | .open = pc87413_open, |
---|
481 | 478 | .release = pc87413_release, |
---|
482 | 479 | }; |
---|