| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Watchdog for the 7101 PMU version found in the ALi M1535 chipsets |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or |
|---|
| 5 | | - * modify it under the terms of the GNU General Public License |
|---|
| 6 | | - * as published by the Free Software Foundation; either version |
|---|
| 7 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 8 | 4 | */ |
|---|
| 9 | 5 | |
|---|
| 10 | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 224 | 220 | return -EINVAL; |
|---|
| 225 | 221 | ali_keepalive(); |
|---|
| 226 | 222 | } |
|---|
| 227 | | - /* fall through */ |
|---|
| 223 | + fallthrough; |
|---|
| 228 | 224 | case WDIOC_GETTIMEOUT: |
|---|
| 229 | 225 | return put_user(timeout, p); |
|---|
| 230 | 226 | default: |
|---|
| .. | .. |
|---|
| 249 | 245 | |
|---|
| 250 | 246 | /* Activate */ |
|---|
| 251 | 247 | ali_start(); |
|---|
| 252 | | - return nonseekable_open(inode, file); |
|---|
| 248 | + return stream_open(inode, file); |
|---|
| 253 | 249 | } |
|---|
| 254 | 250 | |
|---|
| 255 | 251 | /* |
|---|
| .. | .. |
|---|
| 366 | 362 | .llseek = no_llseek, |
|---|
| 367 | 363 | .write = ali_write, |
|---|
| 368 | 364 | .unlocked_ioctl = ali_ioctl, |
|---|
| 365 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 369 | 366 | .open = ali_open, |
|---|
| 370 | 367 | .release = ali_release, |
|---|
| 371 | 368 | }; |
|---|