diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-08-28 09:33:26 +0200 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-09-05 16:20:57 +0200 |
commit | 49cf20b878faf1678b25cbc26df6f0e6bff372f6 (patch) | |
tree | cc22f4aa6ef93b30265ee394830d514750298f8c | |
parent | HID: xiaomi: constify fixed up report descriptor (diff) | |
download | linux-49cf20b878faf1678b25cbc26df6f0e6bff372f6.tar.xz linux-49cf20b878faf1678b25cbc26df6f0e6bff372f6.zip |
HID: vrc2: 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-7-663b9210eb69@weissschuh.net
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
-rw-r--r-- | drivers/hid/hid-vrc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-vrc2.c b/drivers/hid/hid-vrc2.c index 9a4840b524ba..7dc41e92f488 100644 --- a/drivers/hid/hid-vrc2.c +++ b/drivers/hid/hid-vrc2.c @@ -16,7 +16,7 @@ #define USB_VENDOR_ID_VRC2 (0x07c0) #define USB_DEVICE_ID_VRC2 (0x1125) -static __u8 vrc2_rdesc_fixed[] = { +static const __u8 vrc2_rdesc_fixed[] = { 0x05, 0x01, // Usage Page (Generic Desktop Ctrls) 0x09, 0x04, // Usage (Joystick) 0xA1, 0x01, // Collection (Application) |