input: utils: rename the input dump callback

Change the input callback function name to make it easier to identify
what it belongs to. This clears some ambiguity when observing the symbol
names corresponding to the function pointers in the callback section.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2024-03-31 18:42:34 +01:00 committed by Fabio Baltieri
parent 95227b6fd5
commit fa6eca312f
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ static bool input_dump_enabled(void)
} }
#endif /* CONFIG_INPUT_SHELL */ #endif /* CONFIG_INPUT_SHELL */
static void input_cb(struct input_event *evt) static void input_dump_cb(struct input_event *evt)
{ {
if (!input_dump_enabled()) { if (!input_dump_enabled()) {
return; return;
@ -64,7 +64,7 @@ static void input_cb(struct input_event *evt)
evt->code, evt->code,
evt->value); evt->value);
} }
INPUT_CALLBACK_DEFINE(NULL, input_cb); INPUT_CALLBACK_DEFINE(NULL, input_dump_cb);
#endif /* CONFIG_INPUT_EVENT_DUMP */ #endif /* CONFIG_INPUT_EVENT_DUMP */
#ifdef CONFIG_INPUT_SHELL #ifdef CONFIG_INPUT_SHELL