drivers: i2s: Refactor drivers to use shared init priority
Refactors the remaining I2S drivers to use the shared driver class initialization priority configuration, CONFIG_I2S_INIT_PRIORITY, to allow configuring I2S drivers separately from other devices. This is similar to other driver classes. The default is set to CONFIG_KERNEL_INIT_PRIORITY_DEVICE to be consistent with other driver classes. Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
parent
1c7c4506d8
commit
c3ae364467
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ if I2S
|
|||
|
||||
config I2S_INIT_PRIORITY
|
||||
int "Init priority"
|
||||
default 70
|
||||
default KERNEL_INIT_PRIORITY_DEVICE
|
||||
help
|
||||
Device driver initialization priority.
|
||||
|
||||
|
|
|
@ -908,7 +908,7 @@ static int i2s_mcux_init(const struct device *dev)
|
|||
&i2s_mcux_data_##id, \
|
||||
&i2s_mcux_config_##id, \
|
||||
POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
CONFIG_I2S_INIT_PRIORITY, \
|
||||
&i2s_mcux_driver_api); \
|
||||
static void i2s_mcux_config_func_##id(const struct device *dev) \
|
||||
{ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue