Skip to content

Commit d8b21af

Browse files
t-8chBenjamin Tissoires
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent b299944 commit d8b21af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/hid-maltron.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "hid-ids.h"
2323

2424
/* The original buggy USB descriptor */
25-
static u8 maltron_rdesc_o[] = {
25+
static const u8 maltron_rdesc_o[] = {
2626
0x05, 0x01, /* Usage Page (Generic Desktop Ctrls) */
2727
0x09, 0x80, /* Usage (Sys Control) */
2828
0xA1, 0x01, /* Collection (Application) */
@@ -79,7 +79,7 @@ static u8 maltron_rdesc_o[] = {
7979
};
8080

8181
/* The patched descriptor, allowing media key events to be accepted as valid */
82-
static u8 maltron_rdesc[] = {
82+
static const u8 maltron_rdesc[] = {
8383
0x05, 0x01, /* Usage Page (Generic Desktop Ctrls) */
8484
0x09, 0x80, /* Usage (Sys Control) */
8585
0xA1, 0x01, /* Collection (Application) */

0 commit comments

Comments
 (0)