| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * MixCom Watchdog: A Simple Hardware Watchdog Device |
|---|
| 3 | 4 | * Based on Softdog driver by Alan Cox and PC Watchdog driver by Ken Hollis |
|---|
| .. | .. |
|---|
| 5 | 6 | * Author: Gergely Madarasz <gorgo@itc.hu> |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Copyright (c) 1999 ITConsult-Pro Co. <info@itc.hu> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or |
|---|
| 10 | | - * modify it under the terms of the GNU General Public License |
|---|
| 11 | | - * as published by the Free Software Foundation; either version |
|---|
| 12 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 13 | 9 | * |
|---|
| 14 | 10 | * Version 0.1 (99/04/15): |
|---|
| 15 | 11 | * - first version |
|---|
| .. | .. |
|---|
| 36 | 32 | * - make mixcomwd_opened unsigned, |
|---|
| 37 | 33 | * removed lock_kernel/unlock_kernel from mixcomwd_release, |
|---|
| 38 | 34 | * modified ioctl a bit to conform to API |
|---|
| 39 | | - * |
|---|
| 40 | 35 | */ |
|---|
| 41 | 36 | |
|---|
| 42 | 37 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 150 | 145 | mixcomwd_timer_alive = 0; |
|---|
| 151 | 146 | } |
|---|
| 152 | 147 | } |
|---|
| 153 | | - return nonseekable_open(inode, file); |
|---|
| 148 | + return stream_open(inode, file); |
|---|
| 154 | 149 | } |
|---|
| 155 | 150 | |
|---|
| 156 | 151 | static int mixcomwd_release(struct inode *inode, struct file *file) |
|---|
| .. | .. |
|---|
| 232 | 227 | .llseek = no_llseek, |
|---|
| 233 | 228 | .write = mixcomwd_write, |
|---|
| 234 | 229 | .unlocked_ioctl = mixcomwd_ioctl, |
|---|
| 230 | + .compat_ioctl = compat_ptr_ioctl, |
|---|
| 235 | 231 | .open = mixcomwd_open, |
|---|
| 236 | 232 | .release = mixcomwd_release, |
|---|
| 237 | 233 | }; |
|---|