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:
parent
f3c43cc393
commit
9652ac5d16
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue