.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * IT8712F "Smart Guardian" Watchdog support |
---|
3 | 4 | * |
---|
.. | .. |
---|
9 | 10 | * drivers/hwmon/it87.c |
---|
10 | 11 | * IT8712F EC-LPC I/O Preliminary Specification 0.8.2 |
---|
11 | 12 | * IT8712F EC-LPC I/O Preliminary Specification 0.9.3 |
---|
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 as |
---|
15 | | - * published by the Free Software Foundation; either version 2 of the |
---|
16 | | - * License, or (at your option) any later version. |
---|
17 | 13 | * |
---|
18 | 14 | * The author(s) of this software shall not be held liable for damages |
---|
19 | 15 | * of any nature resulting due to the use of this software. This |
---|
.. | .. |
---|
307 | 303 | |
---|
308 | 304 | superio_exit(); |
---|
309 | 305 | it8712f_wdt_ping(); |
---|
310 | | - /* Fall through */ |
---|
| 306 | + fallthrough; |
---|
311 | 307 | case WDIOC_GETTIMEOUT: |
---|
312 | 308 | if (put_user(margin, p)) |
---|
313 | 309 | return -EFAULT; |
---|
.. | .. |
---|
327 | 323 | ret = it8712f_wdt_enable(); |
---|
328 | 324 | if (ret) |
---|
329 | 325 | return ret; |
---|
330 | | - return nonseekable_open(inode, file); |
---|
| 326 | + return stream_open(inode, file); |
---|
331 | 327 | } |
---|
332 | 328 | |
---|
333 | 329 | static int it8712f_wdt_release(struct inode *inode, struct file *file) |
---|
.. | .. |
---|
349 | 345 | .llseek = no_llseek, |
---|
350 | 346 | .write = it8712f_wdt_write, |
---|
351 | 347 | .unlocked_ioctl = it8712f_wdt_ioctl, |
---|
| 348 | + .compat_ioctl = compat_ptr_ioctl, |
---|
352 | 349 | .open = it8712f_wdt_open, |
---|
353 | 350 | .release = it8712f_wdt_release, |
---|
354 | 351 | }; |
---|