diff options
| author | Ricardo B. Marliere <ricardo@marliere.net> | 2024-03-05 10:26:26 -0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-03-25 10:13:44 +0100 |
| commit | 8d93d0674bb1b3770d96e585248f0d5856bf0f64 (patch) | |
| tree | f3c87d4999edb5c387a9fe642f28f3d917a6e382 /include | |
| parent | 888eefd91cbfe143e2f57f4463832861950457a0 (diff) | |
media: lirc_dev: Make lirc_class constant
Since commit 43a7206b0963 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the lirc_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
