| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Userspace driver for the LED subsystem |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2016 David Lechner <david@lechnology.com> |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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. |
|---|
| 17 | 8 | */ |
|---|
| 18 | 9 | #include <linux/fs.h> |
|---|
| 19 | 10 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 74 | 65 | udev->state = ULEDS_STATE_UNKNOWN; |
|---|
| 75 | 66 | |
|---|
| 76 | 67 | file->private_data = udev; |
|---|
| 77 | | - nonseekable_open(inode, file); |
|---|
| 68 | + stream_open(inode, file); |
|---|
| 78 | 69 | |
|---|
| 79 | 70 | return 0; |
|---|
| 80 | 71 | } |
|---|