]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: constify hid_device::rdesc
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 3 Aug 2024 12:34:19 +0000 (14:34 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Tue, 27 Aug 2024 14:18:51 +0000 (16:18 +0200)
commit24ddd0d7de7aaf50f537fd727f31616cb5a65a9e
treeaad035665590f1b7dd298d348166bc33b165a3f2
parent6737769ca0b6bfc82df53db5fd69068902d608db
HID: constify hid_device::rdesc

Once a report descriptor has been created by the HID core it is not
supposed to be modified anymore.
Enforce this invariant through the type system.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20240803-hid-const-fixup-v2-3-f53d7a7b29d8@weissschuh.net
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
include/linux/hid.h