hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/leds/uleds.c
....@@ -1,19 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Userspace driver for the LED subsystem
34 *
45 * Copyright (C) 2016 David Lechner <david@lechnology.com>
56 *
67 * Based on uinput.c: Aristeu Sergio Rozanski Filho <aris@cathedrallabs.org>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
178 */
189 #include <linux/fs.h>
1910 #include <linux/init.h>
....@@ -74,7 +65,7 @@
7465 udev->state = ULEDS_STATE_UNKNOWN;
7566
7667 file->private_data = udev;
77
- nonseekable_open(inode, file);
68
+ stream_open(inode, file);
7869
7970 return 0;
8071 }