Skip to content

Commit 9652ac5

Browse files
committed
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>
1 parent f3c43cc commit 9652ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/input/input_hid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <zephyr/sys/util.h>
1010
#include <zephyr/usb/class/hid.h>
1111

12-
static uint8_t input_to_hid_map[] = {
12+
static const uint8_t input_to_hid_map[] = {
1313
[INPUT_KEY_A] = HID_KEY_A,
1414
[INPUT_KEY_B] = HID_KEY_B,
1515
[INPUT_KEY_C] = HID_KEY_C,

0 commit comments

Comments
 (0)