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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 88ae9ff commit 4211f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)