summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-08-28 10:33:29 +0300
committerBenjamin Tissoires <bentiss@kernel.org>2024-09-05 17:20:57 +0300
commit4211f9b112167f107c96e1c18cd0e5da71b0680a (patch)
treec2b903567184578dad39c6c65401f1d727d579c5 /drivers/hid
parent88ae9ffc7c85c1b6b845f51e5fd850d092e75cd5 (diff)
downloadlinux-4211f9b112167f107c96e1c18cd0e5da71b0680a.tar.xz
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>
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-pxrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-pxrc.c b/drivers/hid/hid-pxrc.c
index ef38730e78ab..71fe0c06ddcd 100644
--- a/drivers/hid/hid-pxrc.c
+++ b/drivers/hid/hid-pxrc.c
@@ -17,7 +17,7 @@ struct pxrc_priv {
bool alternate;
};
-static __u8 pxrc_rdesc_fixed[] = {
+static const __u8 pxrc_rdesc_fixed[] = {
0x05, 0x01, // Usage Page (Generic Desktop Ctrls)
0x09, 0x04, // Usage (Joystick)
0xA1, 0x01, // Collection (Application)