Commit c8be0003 authored by Colin Ian King's avatar Colin Ian King Committed by Jiri Kosina
Browse files

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: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent 2043ae90
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1341,7 +1341,7 @@ static int uclogic_params_ugee_v2_init_event_hooks(struct hid_device *hdev,
						   struct uclogic_params *p)
{
	struct uclogic_raw_event_hook *event_hook;
	__u8 reconnect_event[] = {
	static const __u8 reconnect_event[] = {
		/* Event received on wireless tablet reconnection */
		0x02, 0xF8, 0x02, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
	};