.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* riowd.c - driver for hw watchdog inside Super I/O of RIO |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2001, 2008 David S. Miller (davem@davemloft.net) |
---|
.. | .. |
---|
76 | 77 | |
---|
77 | 78 | static int riowd_open(struct inode *inode, struct file *filp) |
---|
78 | 79 | { |
---|
79 | | - nonseekable_open(inode, filp); |
---|
| 80 | + stream_open(inode, filp); |
---|
80 | 81 | return 0; |
---|
81 | 82 | } |
---|
82 | 83 | |
---|
.. | .. |
---|
133 | 134 | return -EINVAL; |
---|
134 | 135 | riowd_timeout = (new_margin + 59) / 60; |
---|
135 | 136 | riowd_writereg(p, riowd_timeout, WDTO_INDEX); |
---|
136 | | - /* Fall */ |
---|
| 137 | + fallthrough; |
---|
137 | 138 | |
---|
138 | 139 | case WDIOC_GETTIMEOUT: |
---|
139 | 140 | return put_user(riowd_timeout * 60, (int __user *)argp); |
---|
140 | 141 | |
---|
141 | 142 | default: |
---|
142 | 143 | return -EINVAL; |
---|
143 | | - }; |
---|
| 144 | + } |
---|
144 | 145 | |
---|
145 | 146 | return 0; |
---|
146 | 147 | } |
---|
.. | .. |
---|
162 | 163 | .owner = THIS_MODULE, |
---|
163 | 164 | .llseek = no_llseek, |
---|
164 | 165 | .unlocked_ioctl = riowd_ioctl, |
---|
| 166 | + .compat_ioctl = compat_ptr_ioctl, |
---|
165 | 167 | .open = riowd_open, |
---|
166 | 168 | .write = riowd_write, |
---|
167 | 169 | .release = riowd_release, |
---|