audio: mpxxdtyy: Convert to new DT_<COMPAT>_<INSTANCE> defines
Convert mpxxdtyy driver to use new defines so we can remove the dts_fixup.h code for it. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
34b07b99da
commit
a3682f67d4
3 changed files with 5 additions and 8 deletions
|
@ -88,10 +88,10 @@ static int mpxxdtyy_initialize(struct device *dev)
|
|||
{
|
||||
struct mpxxdtyy_data *const data = DEV_DATA(dev);
|
||||
|
||||
data->comm_master = device_get_binding(DT_MPXXDTYY_MASTER_DEV_NAME);
|
||||
data->comm_master = device_get_binding(DT_ST_MPXXDTYY_0_BUS_NAME);
|
||||
|
||||
if (data->comm_master == NULL) {
|
||||
LOG_ERR("master %s not found", DT_MPXXDTYY_MASTER_DEV_NAME);
|
||||
LOG_ERR("master %s not found", DT_ST_MPXXDTYY_0_BUS_NAME);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@ -101,6 +101,6 @@ static int mpxxdtyy_initialize(struct device *dev)
|
|||
|
||||
static struct mpxxdtyy_data mpxxdtyy_data;
|
||||
|
||||
DEVICE_AND_API_INIT(mpxxdtyy, DT_MPXXDTYY_DEV_NAME, mpxxdtyy_initialize,
|
||||
DEVICE_AND_API_INIT(mpxxdtyy, DT_ST_MPXXDTYY_0_LABEL, mpxxdtyy_initialize,
|
||||
&mpxxdtyy_data, NULL, POST_KERNEL,
|
||||
CONFIG_AUDIO_DMIC_INIT_PRIORITY, &mpxxdtyy_driver_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue