HID: constify hid_device::dev_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-5-f53d7a7b29d8@weissschuh.net Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
This commit is contained in:
parent
80cfb508f3
commit
3593630c89
@ -600,7 +600,7 @@ struct hid_driver;
|
||||
struct hid_ll_driver;
|
||||
|
||||
struct hid_device { /* device report descriptor */
|
||||
__u8 *dev_rdesc;
|
||||
const __u8 *dev_rdesc;
|
||||
unsigned dev_rsize;
|
||||
const __u8 *rdesc;
|
||||
unsigned rsize;
|
||||
|
Loading…
Reference in New Issue
Block a user