drivers: audio: Convert drivers to new DT device macros

Convert audio drivers from:

    DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-12-16 06:53:44 -06:00 committed by Anas Nashif
parent f20c15caaf
commit c6f1fc6171
2 changed files with 2 additions and 2 deletions

View file

@ -165,6 +165,6 @@ static int mpxxdtyy_initialize(const struct device *dev)
static struct mpxxdtyy_data mpxxdtyy_data;
DEVICE_AND_API_INIT(mpxxdtyy, DT_INST_LABEL(0), mpxxdtyy_initialize,
DEVICE_DT_INST_DEFINE(0, mpxxdtyy_initialize, device_pm_control_nop,
&mpxxdtyy_data, NULL, POST_KERNEL,
CONFIG_AUDIO_DMIC_INIT_PRIORITY, &mpxxdtyy_driver_api);

View file

@ -543,6 +543,6 @@ static const struct audio_codec_api codec_driver_api = {
.apply_properties = codec_apply_properties,
};
DEVICE_AND_API_INIT(tlv320dac310x, DT_INST_LABEL(0), codec_initialize,
DEVICE_DT_INST_DEFINE(0, codec_initialize, device_pm_control_nop,
&codec_device_data, &codec_device_config, POST_KERNEL,
CONFIG_AUDIO_CODEC_INIT_PRIORITY, &codec_driver_api);