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:
committed by
Benjamin Cabé
parent
f3c43cc393
commit
9652ac5d16
@@ -9,7 +9,7 @@
|
||||
#include <zephyr/sys/util.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_B] = HID_KEY_B,
|
||||
[INPUT_KEY_C] = HID_KEY_C,
|
||||
|
||||
Reference in New Issue
Block a user