Skip to content

Commit 4211f9b

Browse files
t-8chBenjamin Tissoires
authored andcommitted
HID: pxrc: constify fixed up report descriptor
Now that the HID core can handle const report descriptors, constify them where possible. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Link: https://patch.msgid.link/20240828-hid-const-fixup-2-v1-10-663b9210eb69@weissschuh.net Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
1 parent 88ae9ff commit 4211f9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hid/hid-pxrc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct pxrc_priv {
1717
bool alternate;
1818
};
1919

20-
static __u8 pxrc_rdesc_fixed[] = {
20+
static const __u8 pxrc_rdesc_fixed[] = {
2121
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
2222
0x09, 0x04, // Usage (Joystick)
2323
0xA1, 0x01, // Collection (Application)

0 commit comments

Comments
 (0)