hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/hid/uhid.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * User-space I/O driver support for HID subsystem
34 * Copyright (c) 2012 David Herrmann
45 */
56
67 /*
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License as published by the Free
9
- * Software Foundation; either version 2 of the License, or (at your option)
10
- * any later version.
118 */
129
1310 #include <linux/atomic.h>
....@@ -653,7 +650,7 @@
653650 INIT_WORK(&uhid->worker, uhid_device_add_worker);
654651
655652 file->private_data = uhid;
656
- nonseekable_open(inode, file);
653
+ stream_open(inode, file);
657654
658655 return 0;
659656 }