Skip to content

Commit c8be000

Browse files
ColinIanKingJiri Kosina
authored andcommitted
HID: uclogic: make read-only array reconnect_event static const
Don't populate the read-only array reconnect_event on the stack at run time, instead make it static const. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 2043ae9 commit c8be000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-uclogic-params.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ static int uclogic_params_ugee_v2_init_event_hooks(struct hid_device *hdev,
13411341
struct uclogic_params *p)
13421342
{
13431343
struct uclogic_raw_event_hook *event_hook;
1344-
__u8 reconnect_event[] = {
1344+
static const __u8 reconnect_event[] = {
13451345
/* Event received on wireless tablet reconnection */
13461346
0x02, 0xF8, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
13471347
};

0 commit comments

Comments
 (0)