Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

HID: maltron: 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-5-663b9210eb69@weissschuh.net
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>

authored by

Thomas Weißschuh and committed by
Benjamin Tissoires
d8b21af6 b299944a

+2 -2
+2 -2
drivers/hid/hid-maltron.c
··· 22 22 #include "hid-ids.h" 23 23 24 24 /* The original buggy USB descriptor */ 25 - static u8 maltron_rdesc_o[] = { 25 + static const u8 maltron_rdesc_o[] = { 26 26 0x05, 0x01, /* Usage Page (Generic Desktop Ctrls) */ 27 27 0x09, 0x80, /* Usage (Sys Control) */ 28 28 0xA1, 0x01, /* Collection (Application) */ ··· 79 79 }; 80 80 81 81 /* The patched descriptor, allowing media key events to be accepted as valid */ 82 - static u8 maltron_rdesc[] = { 82 + static const u8 maltron_rdesc[] = { 83 83 0x05, 0x01, /* Usage Page (Generic Desktop Ctrls) */ 84 84 0x09, 0x80, /* Usage (Sys Control) */ 85 85 0xA1, 0x01, /* Collection (Application) */