diff --git a/drivers/kscan/kscan_input.c b/drivers/kscan/kscan_input.c index 17481fc57d6..7e98ae4723e 100644 --- a/drivers/kscan/kscan_input.c +++ b/drivers/kscan/kscan_input.c @@ -101,9 +101,10 @@ static const struct kscan_driver_api kscan_input_driver_api = { }; #define KSCAN_INPUT_INIT(index) \ - INPUT_CALLBACK_DEFINE(DEVICE_DT_GET(DT_INST_PARENT(index)), \ - kscan_input_cb, \ - (void *)DEVICE_DT_INST_GET(index)); \ + INPUT_CALLBACK_DEFINE_NAMED(DEVICE_DT_GET(DT_INST_PARENT(index)), \ + kscan_input_cb, \ + (void *)DEVICE_DT_INST_GET(index), \ + kscan_input_cb_##index); \ static const struct kscan_input_config kscan_input_config_##index = { \ .input_dev = DEVICE_DT_GET(DT_INST_PARENT(index)), \ }; \