hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/watchdog/wdt285.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Intel 21285 watchdog driver
34 * Copyright (c) Phil Blundell <pb@nexus.co.uk>, 1998
....@@ -8,12 +9,6 @@
89 *
910 * (c) Copyright 1996 Alan Cox <alan@lxorguk.ukuu.org.uk>,
1011 * 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
- *
1712 */
1813
1914 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -101,7 +96,7 @@
10196
10297 ret = 0;
10398 #endif
104
- nonseekable_open(inode, file);
99
+ stream_open(inode, file);
105100 return ret;
106101 }
107102
....@@ -173,7 +168,7 @@
173168 soft_margin = new_margin;
174169 reload = soft_margin * (mem_fclk_21285 / 256);
175170 watchdog_ping();
176
- /* Fall */
171
+ fallthrough;
177172 case WDIOC_GETTIMEOUT:
178173 ret = put_user(soft_margin, int_arg);
179174 break;
....@@ -186,6 +181,7 @@
186181 .llseek = no_llseek,
187182 .write = watchdog_write,
188183 .unlocked_ioctl = watchdog_ioctl,
184
+ .compat_ioctl = compat_ptr_ioctl,
189185 .open = watchdog_open,
190186 .release = watchdog_release,
191187 };