diff options
| author | Colin Ian King <colin.i.king@gmail.com> | 2025-06-19 09:34:56 +0100 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2025-06-20 09:05:47 +0200 |
| commit | c8be000387e47624d14b328daca260f897756402 (patch) | |
| tree | 6e210e143a0ec87c595ed1b6b2c5787d23ad69a3 | |
| parent | 2043ae9019e0f75c7785048230586c3f3ca0a2a4 (diff) | |
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 <colin.i.king@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
| -rw-r--r-- | drivers/hid/hid-uclogic-params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-uclogic-params.c b/drivers/hid/hid-uclogic-params.c index a6044996abf2..b3d56057cec9 100644 --- a/drivers/hid/hid-uclogic-params.c +++ b/drivers/hid/hid-uclogic-params.c @@ -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 }; |
