refactor(drivers): Use proper init stage/priority.

* Avoid APPLICATION stage and use the proper earlier stage for
  kscan drivers.
This commit is contained in:
Peter Johanson
2023-09-02 20:28:47 -07:00
committed by Pete Johanson
parent 690bc1bb44
commit c28ef1b61e
6 changed files with 6 additions and 12 deletions

View File

@@ -201,7 +201,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
}; \
\
DEVICE_DT_INST_DEFINE(n, kscan_gpio_init_##n, NULL, &kscan_gpio_data_##n, \
&kscan_gpio_config_##n, APPLICATION, CONFIG_APPLICATION_INIT_PRIORITY, \
&kscan_gpio_config_##n, POST_KERNEL, CONFIG_KSCAN_INIT_PRIORITY, \
&gpio_driver_api_##n);
DT_INST_FOREACH_STATUS_OKAY(GPIO_INST_INIT)