dts: Convert new/missed DT_<COMPAT>_<INSTANCE>_<PROP> to DT_INST...
Change code from using now deprecated DT_<COMPAT>_<INSTANCE>_<PROP> defines to using DT_INST_<INSTANCE>_<COMPAT>_<PROP>. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
4396dc9c71
commit
d4a0c3a2aa
11 changed files with 167 additions and 167 deletions
|
@ -41,12 +41,12 @@ struct codec_driver_data {
|
|||
|
||||
static struct codec_driver_config codec_device_config = {
|
||||
.i2c_device = NULL,
|
||||
.i2c_dev_name = DT_TI_TLV320DAC_0_BUS_NAME,
|
||||
.i2c_address = DT_TI_TLV320DAC_0_BASE_ADDRESS,
|
||||
.i2c_dev_name = DT_INST_0_TI_TLV320DAC_BUS_NAME,
|
||||
.i2c_address = DT_INST_0_TI_TLV320DAC_BASE_ADDRESS,
|
||||
.gpio_device = NULL,
|
||||
.gpio_dev_name = DT_TI_TLV320DAC_0_RESET_GPIOS_CONTROLLER,
|
||||
.gpio_pin = DT_TI_TLV320DAC_0_RESET_GPIOS_PIN,
|
||||
.gpio_flags = DT_TI_TLV320DAC_0_RESET_GPIOS_FLAGS,
|
||||
.gpio_dev_name = DT_INST_0_TI_TLV320DAC_RESET_GPIOS_CONTROLLER,
|
||||
.gpio_pin = DT_INST_0_TI_TLV320DAC_RESET_GPIOS_PIN,
|
||||
.gpio_flags = DT_INST_0_TI_TLV320DAC_RESET_GPIOS_FLAGS,
|
||||
};
|
||||
|
||||
static struct codec_driver_data codec_device_data;
|
||||
|
@ -538,6 +538,6 @@ static const struct audio_codec_api codec_driver_api = {
|
|||
.apply_properties = codec_apply_properties,
|
||||
};
|
||||
|
||||
DEVICE_AND_API_INIT(tlv320dac310x, DT_TI_TLV320DAC_0_LABEL, codec_initialize,
|
||||
DEVICE_AND_API_INIT(tlv320dac310x, DT_INST_0_TI_TLV320DAC_LABEL, codec_initialize,
|
||||
&codec_device_data, &codec_device_config, POST_KERNEL,
|
||||
CONFIG_AUDIO_CODEC_INIT_PRIORITY, &codec_driver_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue