HID: hidraw: make hidraw_class structure const
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jun 2023 18:31:43 +0000 (20:31 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Aug 2023 09:23:35 +0000 (11:23 +0200)
commit21168bdba6eaa62b799c32a227a5f3915cebdaa6
treea735612fe9a1bb99825f5557df6793e7ce01756e
parentfadfcf36016100dc9da0f1ab062c758e41f76b11
HID: hidraw: make hidraw_class structure const

Now that the driver core allows for struct class to be in read-only
memory, making all 'class' structures to be declared at build time
placing them into read-only memory, instead of having to be dynamically
allocated at load time.

Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-input@vger.kernel.org
Cc: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c