From 07bf0f95fef11f37cf9f84067815485f072171af Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Tue, 28 Nov 2023 15:29:22 +0000 Subject: [PATCH] input: gpio_keys: drop zephyr_code from the callback struct It's not really used from here, guess it was a leftover. Signed-off-by: Fabio Baltieri --- drivers/input/input_gpio_keys.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/input/input_gpio_keys.c b/drivers/input/input_gpio_keys.c index bf157d5947..f13ff7dbab 100644 --- a/drivers/input/input_gpio_keys.c +++ b/drivers/input/input_gpio_keys.c @@ -16,7 +16,6 @@ LOG_MODULE_REGISTER(gpio_keys, CONFIG_INPUT_LOG_LEVEL); struct gpio_keys_callback { struct gpio_callback gpio_cb; - uint32_t zephyr_code; int8_t pin_state; }; @@ -106,7 +105,6 @@ static int gpio_keys_interrupt_configure(const struct gpio_dt_spec *gpio_spec, return retval; } - cb->zephyr_code = zephyr_code; cb->pin_state = -1; flags = GPIO_INT_EDGE_BOTH & ~GPIO_INT_MODE_DISABLED;