| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * IB700 Single Board Computer WDT driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 13 | 14 | * |
|---|
| 14 | 15 | * (c) Copyright 1996 Alan Cox <alan@lxorguk.ukuu.org.uk>, |
|---|
| 15 | 16 | * All Rights Reserved. |
|---|
| 16 | | - * |
|---|
| 17 | | - * This program is free software; you can redistribute it and/or |
|---|
| 18 | | - * modify it under the terms of the GNU General Public License |
|---|
| 19 | | - * as published by the Free Software Foundation; either version |
|---|
| 20 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 21 | 17 | * |
|---|
| 22 | 18 | * Neither Alan Cox nor CymruNet Ltd. admit liability nor provide |
|---|
| 23 | 19 | * warranty for any of this software. This material is provided |
|---|
| .. | .. |
|---|
| 218 | 214 | if (ibwdt_set_heartbeat(new_margin)) |
|---|
| 219 | 215 | return -EINVAL; |
|---|
| 220 | 216 | ibwdt_ping(); |
|---|
| 221 | | - /* fall through */ |
|---|
| 217 | + fallthrough; |
|---|
| 222 | 218 | |
|---|
| 223 | 219 | case WDIOC_GETTIMEOUT: |
|---|
| 224 | 220 | return put_user(timeout, p); |
|---|
| .. | .. |
|---|
| 238 | 234 | |
|---|
| 239 | 235 | /* Activate */ |
|---|
| 240 | 236 | ibwdt_ping(); |
|---|
| 241 | | - return nonseekable_open(inode, file); |
|---|
| 237 | + return stream_open(inode, file); |
|---|
| 242 | 238 | } |
|---|
| 243 | 239 | |
|---|
| 244 | 240 | static int ibwdt_close(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 263 | 259 | .llseek = no_llseek, |
|---|
| 264 | 260 | .write = ibwdt_write, |
|---|
| 265 | 261 | .unlocked_ioctl = ibwdt_ioctl, |
|---|
| 262 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 266 | 263 | .open = ibwdt_open, |
|---|
| 267 | 264 | .release = ibwdt_close, |
|---|
| 268 | 265 | }; |
|---|