| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Berkshire PCI-PC Watchdog Card Driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 9 | 10 | * Alan Cox <alan@lxorguk.ukuu.org.uk>, |
|---|
| 10 | 11 | * Matt Domsch <Matt_Domsch@dell.com>, |
|---|
| 11 | 12 | * Rob Radez <rob@osinvestor.com> |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is free software; you can redistribute it and/or |
|---|
| 14 | | - * modify it under the terms of the GNU General Public License |
|---|
| 15 | | - * as published by the Free Software Foundation; either version |
|---|
| 16 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 17 | 13 | * |
|---|
| 18 | 14 | * Neither Wim Van Sebroeck nor Iguana vzw. admit liability nor |
|---|
| 19 | 15 | * provide warranty for any of this software. This material is |
|---|
| .. | .. |
|---|
| 546 | 542 | |
|---|
| 547 | 543 | pcipcwd_keepalive(); |
|---|
| 548 | 544 | } |
|---|
| 549 | | - /* fall through */ |
|---|
| 545 | + fallthrough; |
|---|
| 550 | 546 | |
|---|
| 551 | 547 | case WDIOC_GETTIMEOUT: |
|---|
| 552 | 548 | return put_user(heartbeat, p); |
|---|
| .. | .. |
|---|
| 578 | 574 | /* Activate */ |
|---|
| 579 | 575 | pcipcwd_start(); |
|---|
| 580 | 576 | pcipcwd_keepalive(); |
|---|
| 581 | | - return nonseekable_open(inode, file); |
|---|
| 577 | + return stream_open(inode, file); |
|---|
| 582 | 578 | } |
|---|
| 583 | 579 | |
|---|
| 584 | 580 | static int pcipcwd_release(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 620 | 616 | if (!pcipcwd_private.supports_temp) |
|---|
| 621 | 617 | return -ENODEV; |
|---|
| 622 | 618 | |
|---|
| 623 | | - return nonseekable_open(inode, file); |
|---|
| 619 | + return stream_open(inode, file); |
|---|
| 624 | 620 | } |
|---|
| 625 | 621 | |
|---|
| 626 | 622 | static int pcipcwd_temp_release(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 650 | 646 | .llseek = no_llseek, |
|---|
| 651 | 647 | .write = pcipcwd_write, |
|---|
| 652 | 648 | .unlocked_ioctl = pcipcwd_ioctl, |
|---|
| 649 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 653 | 650 | .open = pcipcwd_open, |
|---|
| 654 | 651 | .release = pcipcwd_release, |
|---|
| 655 | 652 | }; |
|---|