Searched refs:sdw_dev (Results 1 – 2 of 2) sorted by relevance
24 static int rt711_add_codec_device_props(struct device *sdw_dev) in rt711_add_codec_device_props() argument38 ret = device_add_software_node(sdw_dev, to_software_node(fwnode)); in rt711_add_codec_device_props()158 struct device *sdw_dev; in sof_sdw_rt711_init() local168 sdw_dev = bus_find_device_by_name(&sdw_bus_type, NULL, dai_links->codecs[0].name); in sof_sdw_rt711_init()169 if (!sdw_dev) in sof_sdw_rt711_init()172 ret = rt711_add_codec_device_props(sdw_dev); in sof_sdw_rt711_init()174 put_device(sdw_dev); in sof_sdw_rt711_init()177 ctx->headset_codec_dev = sdw_dev; in sof_sdw_rt711_init()
24 static int rt711_sdca_add_codec_device_props(struct device *sdw_dev) in rt711_sdca_add_codec_device_props() argument39 ret = device_add_software_node(sdw_dev, to_software_node(fwnode)); in rt711_sdca_add_codec_device_props()159 struct device *sdw_dev; in sof_sdw_rt711_sdca_init() local169 sdw_dev = bus_find_device_by_name(&sdw_bus_type, NULL, dai_links->codecs[0].name); in sof_sdw_rt711_sdca_init()170 if (!sdw_dev) in sof_sdw_rt711_sdca_init()173 ret = rt711_sdca_add_codec_device_props(sdw_dev); in sof_sdw_rt711_sdca_init()175 put_device(sdw_dev); in sof_sdw_rt711_sdca_init()178 ctx->headset_codec_dev = sdw_dev; in sof_sdw_rt711_sdca_init()