.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * FIXME: add wdrtas_get_status and wdrtas_get_boot_status as soon as |
---|
3 | 4 | * RTAS calls are available |
---|
.. | .. |
---|
10 | 11 | * device driver to exploit watchdog RTAS functions |
---|
11 | 12 | * |
---|
12 | 13 | * Authors : Utz Bacher <utz.bacher@de.ibm.com> |
---|
13 | | - * |
---|
14 | | - * This program is free software; you can redistribute it and/or modify |
---|
15 | | - * it under the terms of the GNU General Public License as published by |
---|
16 | | - * the Free Software Foundation; either version 2, or (at your option) |
---|
17 | | - * any later version. |
---|
18 | | - * |
---|
19 | | - * This program is distributed in the hope that it will be useful, |
---|
20 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
21 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
22 | | - * GNU General Public License for more details. |
---|
23 | | - * |
---|
24 | | - * You should have received a copy of the GNU General Public License |
---|
25 | | - * along with this program; if not, write to the Free Software |
---|
26 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
27 | 14 | */ |
---|
28 | 15 | |
---|
29 | 16 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
345 | 332 | wdrtas_interval = i; |
---|
346 | 333 | else |
---|
347 | 334 | wdrtas_interval = wdrtas_get_interval(i); |
---|
348 | | - /* fallthrough */ |
---|
| 335 | + fallthrough; |
---|
349 | 336 | |
---|
350 | 337 | case WDIOC_GETTIMEOUT: |
---|
351 | 338 | return put_user(wdrtas_interval, argp); |
---|
.. | .. |
---|
376 | 363 | wdrtas_timer_start(); |
---|
377 | 364 | wdrtas_timer_keepalive(); |
---|
378 | 365 | |
---|
379 | | - return nonseekable_open(inode, file); |
---|
| 366 | + return stream_open(inode, file); |
---|
380 | 367 | } |
---|
381 | 368 | |
---|
382 | 369 | /** |
---|
.. | .. |
---|
442 | 429 | */ |
---|
443 | 430 | static int wdrtas_temp_open(struct inode *inode, struct file *file) |
---|
444 | 431 | { |
---|
445 | | - return nonseekable_open(inode, file); |
---|
| 432 | + return stream_open(inode, file); |
---|
446 | 433 | } |
---|
447 | 434 | |
---|
448 | 435 | /** |
---|
.. | .. |
---|
485 | 472 | .llseek = no_llseek, |
---|
486 | 473 | .write = wdrtas_write, |
---|
487 | 474 | .unlocked_ioctl = wdrtas_ioctl, |
---|
| 475 | + .compat_ioctl = compat_ptr_ioctl, |
---|
488 | 476 | .open = wdrtas_open, |
---|
489 | 477 | .release = wdrtas_close, |
---|
490 | 478 | }; |
---|