From 00ccca90ffa62316abf32840c94bd3b588a9be14 Mon Sep 17 00:00:00 2001 From: Sviatoslav Bulbakha Date: Mon, 25 Sep 2023 15:29:49 +0400 Subject: [PATCH] Change kscan init --- config/tako_drivers/kscan/kscan_gpio_ec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/tako_drivers/kscan/kscan_gpio_ec.c b/config/tako_drivers/kscan/kscan_gpio_ec.c index c9bf11c..d9195c9 100644 --- a/config/tako_drivers/kscan/kscan_gpio_ec.c +++ b/config/tako_drivers/kscan/kscan_gpio_ec.c @@ -379,7 +379,7 @@ static const struct kscan_driver_api kscan_ec_api = { ZMK_SUBSCRIPTION(kscan_ec##n, zmk_activity_state_changed); \ \ DEVICE_DT_INST_DEFINE(n, &kscan_ec_init, NULL, &kscan_ec_data_##n, \ - &kscan_ec_config_##n, APPLICATION, \ - CONFIG_APPLICATION_INIT_PRIORITY, &kscan_ec_api); + &kscan_ec_config_##n, POST_KERNEL, \ + CONFIG_KSCAN_INIT_PRIORITY, &kscan_ec_api); DT_INST_FOREACH_STATUS_OKAY(KSCAN_EC_INIT);