Skip to content

Commit

Permalink
input: gpio_kbd_matrix: drop redundant gpio_kbd_matrix_set_detect_mode
Browse files Browse the repository at this point in the history
This is called already as soon as the polling thread starts, so the call
in the gpio init function is harmless but redundant, drop it.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
fabiobaltieri committed Nov 22, 2023
1 parent 6cd7249 commit ea887af
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/input/input_gpio_kbd_matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ static int gpio_kbd_matrix_init(const struct device *dev)
LOG_DBG("direct_read: %d direct_write: %d",
data->direct_read, data->direct_write);

gpio_kbd_matrix_set_detect_mode(dev, true);

return input_kbd_matrix_common_init(dev);
}

Expand Down

0 comments on commit ea887af

Please sign in to comment.