| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ICP Wafer 5823 Single Board Computer WDT driver |
|---|
| 3 | 4 | * http://www.icpamerica.com/wafer_5823.php |
|---|
| .. | .. |
|---|
| 12 | 13 | * |
|---|
| 13 | 14 | * (c) Copyright 1996-1997 Alan Cox <alan@lxorguk.ukuu.org.uk>, |
|---|
| 14 | 15 | * All Rights Reserved. |
|---|
| 15 | | - * |
|---|
| 16 | | - * This program is free software; you can redistribute it and/or |
|---|
| 17 | | - * modify it under the terms of the GNU General Public License |
|---|
| 18 | | - * as published by the Free Software Foundation; either version |
|---|
| 19 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 20 | 16 | * |
|---|
| 21 | 17 | * Neither Alan Cox nor CymruNet Ltd. admit liability nor provide |
|---|
| 22 | 18 | * warranty for any of this software. This material is provided |
|---|
| .. | .. |
|---|
| 178 | 174 | timeout = new_timeout; |
|---|
| 179 | 175 | wafwdt_stop(); |
|---|
| 180 | 176 | wafwdt_start(); |
|---|
| 181 | | - /* Fall through */ |
|---|
| 177 | + fallthrough; |
|---|
| 182 | 178 | case WDIOC_GETTIMEOUT: |
|---|
| 183 | 179 | return put_user(timeout, p); |
|---|
| 184 | 180 | |
|---|
| .. | .. |
|---|
| 197 | 193 | * Activate |
|---|
| 198 | 194 | */ |
|---|
| 199 | 195 | wafwdt_start(); |
|---|
| 200 | | - return nonseekable_open(inode, file); |
|---|
| 196 | + return stream_open(inode, file); |
|---|
| 201 | 197 | } |
|---|
| 202 | 198 | |
|---|
| 203 | 199 | static int wafwdt_close(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 234 | 230 | .llseek = no_llseek, |
|---|
| 235 | 231 | .write = wafwdt_write, |
|---|
| 236 | 232 | .unlocked_ioctl = wafwdt_ioctl, |
|---|
| 233 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 237 | 234 | .open = wafwdt_open, |
|---|
| 238 | 235 | .release = wafwdt_close, |
|---|
| 239 | 236 | }; |
|---|