input: input_hid: add missing const qualifier

HID lookup table can live in Flash and save some RAM (quite a bit
actually, as it's quite large!).

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-14 22:24:58 +02:00 committed by Benjamin Cabé
commit 9652ac5d16

View file

@ -9,7 +9,7 @@
#include <zephyr/sys/util.h> #include <zephyr/sys/util.h>
#include <zephyr/usb/class/hid.h> #include <zephyr/usb/class/hid.h>
static uint8_t input_to_hid_map[] = { static const uint8_t input_to_hid_map[] = {
[INPUT_KEY_A] = HID_KEY_A, [INPUT_KEY_A] = HID_KEY_A,
[INPUT_KEY_B] = HID_KEY_B, [INPUT_KEY_B] = HID_KEY_B,
[INPUT_KEY_C] = HID_KEY_C, [INPUT_KEY_C] = HID_KEY_C,