.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Intel 21285 watchdog driver |
---|
3 | 4 | * Copyright (c) Phil Blundell <pb@nexus.co.uk>, 1998 |
---|
.. | .. |
---|
8 | 9 | * |
---|
9 | 10 | * (c) Copyright 1996 Alan Cox <alan@lxorguk.ukuu.org.uk>, |
---|
10 | 11 | * All Rights Reserved. |
---|
11 | | - * |
---|
12 | | - * This program is free software; you can redistribute it and/or |
---|
13 | | - * modify it under the terms of the GNU General Public License |
---|
14 | | - * as published by the Free Software Foundation; either version |
---|
15 | | - * 2 of the License, or (at your option) any later version. |
---|
16 | | - * |
---|
17 | 12 | */ |
---|
18 | 13 | |
---|
19 | 14 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
101 | 96 | |
---|
102 | 97 | ret = 0; |
---|
103 | 98 | #endif |
---|
104 | | - nonseekable_open(inode, file); |
---|
| 99 | + stream_open(inode, file); |
---|
105 | 100 | return ret; |
---|
106 | 101 | } |
---|
107 | 102 | |
---|
.. | .. |
---|
173 | 168 | soft_margin = new_margin; |
---|
174 | 169 | reload = soft_margin * (mem_fclk_21285 / 256); |
---|
175 | 170 | watchdog_ping(); |
---|
176 | | - /* Fall */ |
---|
| 171 | + fallthrough; |
---|
177 | 172 | case WDIOC_GETTIMEOUT: |
---|
178 | 173 | ret = put_user(soft_margin, int_arg); |
---|
179 | 174 | break; |
---|
.. | .. |
---|
186 | 181 | .llseek = no_llseek, |
---|
187 | 182 | .write = watchdog_write, |
---|
188 | 183 | .unlocked_ioctl = watchdog_ioctl, |
---|
| 184 | + .compat_ioctl = compat_ptr_ioctl, |
---|
189 | 185 | .open = watchdog_open, |
---|
190 | 186 | .release = watchdog_release, |
---|
191 | 187 | }; |
---|