| .. | .. | 
|---|
|  | 1 | +// SPDX-License-Identifier: GPL-2.0 | 
|---|
| 1 | 2 | /* | 
|---|
| 2 | 3 | *	NANO7240 SBC Watchdog device driver | 
|---|
| 3 | 4 | * | 
|---|
| 4 | 5 | *	Based on w83877f.c by Scott Jennings, | 
|---|
| 5 | 6 | * | 
|---|
| 6 |  | - *	This program is free software; you can redistribute it and/or modify | 
|---|
| 7 |  | - *	it under the terms of the GNU General Public License version 2 as | 
|---|
| 8 |  | - *	published by the Free Software Foundation; | 
|---|
| 9 |  | - * | 
|---|
| 10 |  | - *	Software distributed under the License is distributed on an "AS IS" | 
|---|
| 11 |  | - *	basis, WITHOUT WARRANTY OF ANY KIND, either express or | 
|---|
| 12 |  | - *	implied. See the License for the specific language governing | 
|---|
| 13 |  | - *	rights and limitations under the License. | 
|---|
| 14 |  | - * | 
|---|
| 15 | 7 | *	(c) Copyright 2007  Gilles GIGAN <gilles.gigan@jcu.edu.au> | 
|---|
| 16 |  | - * | 
|---|
| 17 | 8 | */ | 
|---|
| 18 | 9 |  | 
|---|
| 19 | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 
|---|
| .. | .. | 
|---|
| 136 | 127 |  | 
|---|
| 137 | 128 | wdt_enable(); | 
|---|
| 138 | 129 |  | 
|---|
| 139 |  | -	return nonseekable_open(inode, file); | 
|---|
|  | 130 | +	return stream_open(inode, file); | 
|---|
| 140 | 131 | } | 
|---|
| 141 | 132 |  | 
|---|
| 142 | 133 | static int fop_close(struct inode *inode, struct file *file) | 
|---|
| .. | .. | 
|---|
| 203 | 194 |  | 
|---|
| 204 | 195 | if (wdt_set_timeout(new_timeout)) | 
|---|
| 205 | 196 | return -EINVAL; | 
|---|
| 206 |  | - | 
|---|
| 207 |  | -		/* Fall through */ | 
|---|
| 208 | 197 | } | 
|---|
|  | 198 | +		fallthrough; | 
|---|
| 209 | 199 | case WDIOC_GETTIMEOUT: | 
|---|
| 210 | 200 | return put_user(timeout, (int __user *)arg); | 
|---|
| 211 | 201 | default: | 
|---|
| .. | .. | 
|---|
| 220 | 210 | .open = fop_open, | 
|---|
| 221 | 211 | .release = fop_close, | 
|---|
| 222 | 212 | .unlocked_ioctl = fop_ioctl, | 
|---|
|  | 213 | +	.compat_ioctl = compat_ptr_ioctl, | 
|---|
| 223 | 214 | }; | 
|---|
| 224 | 215 |  | 
|---|
| 225 | 216 | static struct miscdevice wdt_miscdev = { | 
|---|