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

authored by

Thomas Weißschuh and committed by
Benjamin Tissoires
b299944a 3ce7edfa

+2 -4
+2 -4
drivers/hid/hid-keytouch.c
··· 16 16 17 17 /* Replace the broken report descriptor of this device with rather 18 18 * a default one */ 19 - static __u8 keytouch_fixed_rdesc[] = { 19 + static const __u8 keytouch_fixed_rdesc[] = { 20 20 0x05, 0x01, 0x09, 0x06, 0xa1, 0x01, 0x05, 0x07, 0x19, 0xe0, 0x29, 0xe7, 0x15, 21 21 0x00, 0x25, 0x01, 0x75, 0x01, 0x95, 0x08, 0x81, 0x02, 0x95, 0x01, 0x75, 0x08, 22 22 0x81, 0x01, 0x95, 0x03, 0x75, 0x01, 0x05, 0x08, 0x19, 0x01, 0x29, 0x03, 0x91, ··· 29 29 { 30 30 hid_info(hdev, "fixing up Keytouch IEC report descriptor\n"); 31 31 32 - rdesc = keytouch_fixed_rdesc; 33 32 *rsize = sizeof(keytouch_fixed_rdesc); 34 - 35 - return rdesc; 33 + return keytouch_fixed_rdesc; 36 34 } 37 35 38 36 static const struct hid_device_id keytouch_devices[] = {