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

@@ -109,4 +109,4 @@ static const struct kscan_composite_config kscan_composite_config = {};
static struct kscan_composite_data kscan_composite_data;
DEVICE_DT_INST_DEFINE(0, kscan_composite_init, NULL, &kscan_composite_data, &kscan_composite_config,
APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &mock_driver_api);
POST_KERNEL, CONFIG_KSCAN_INIT_PRIORITY, &mock_driver_api);