Skip to content

Commit

Permalink
input: utils: rename the input dump callback
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fabiobaltieri committed Apr 1, 2024
1 parent 95227b6 commit fa6eca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/input/input_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static bool input_dump_enabled(void)
}
#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()) {
return;
Expand All @@ -64,7 +64,7 @@ static void input_cb(struct input_event *evt)
evt->code,
evt->value);
}
INPUT_CALLBACK_DEFINE(NULL, input_cb);
INPUT_CALLBACK_DEFINE(NULL, input_dump_cb);
#endif /* CONFIG_INPUT_EVENT_DUMP */

#ifdef CONFIG_INPUT_SHELL
Expand Down

0 comments on commit fa6eca3

Please sign in to comment.