| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* Watchdog timer for machines with the CS5535/CS5536 companion chip |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (C) 2006-2007, Advanced Micro Devices, Inc. |
|---|
| 4 | 5 | * Copyright (C) 2009 Andres Salomon <dilinger@collabora.co.uk> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or |
|---|
| 7 | | - * modify it under the terms of the GNU General Public License |
|---|
| 8 | | - * as published by the Free Software Foundation; either version |
|---|
| 9 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 92 | 88 | __module_get(THIS_MODULE); |
|---|
| 93 | 89 | |
|---|
| 94 | 90 | geodewdt_ping(); |
|---|
| 95 | | - return nonseekable_open(inode, file); |
|---|
| 91 | + return stream_open(inode, file); |
|---|
| 96 | 92 | } |
|---|
| 97 | 93 | |
|---|
| 98 | 94 | static int geodewdt_release(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 189 | 185 | |
|---|
| 190 | 186 | if (geodewdt_set_heartbeat(interval)) |
|---|
| 191 | 187 | return -EINVAL; |
|---|
| 192 | | - /* Fall through */ |
|---|
| 188 | + fallthrough; |
|---|
| 193 | 189 | case WDIOC_GETTIMEOUT: |
|---|
| 194 | 190 | return put_user(timeout, p); |
|---|
| 195 | 191 | |
|---|
| .. | .. |
|---|
| 205 | 201 | .llseek = no_llseek, |
|---|
| 206 | 202 | .write = geodewdt_write, |
|---|
| 207 | 203 | .unlocked_ioctl = geodewdt_ioctl, |
|---|
| 204 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 208 | 205 | .open = geodewdt_open, |
|---|
| 209 | 206 | .release = geodewdt_release, |
|---|
| 210 | 207 | }; |
|---|