Skip to contentSkip to conversation

ASoC: rt715: use dev_to_sdw_dev() macro

PATCH In review Pierre-Louis Bossart 2 participants 2 messages Jan 14, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: rt715: use dev_to_sdw_dev() macro

The driver used a macro which was renamed during the joint Intel/SoundWire development, but since those renames were not merged by the SoundWire maintainer we have to revert to the original macros as done with the other Realtek codecs.

Fixes d1ede0641b05e4 ("ASoC: rt715: add RT715 codec driver")
Cc Jack Yu <[email protected]>
---
 sound/soc/codecs/rt715-sdw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt715-sdw.c +1 -1
index c35591fd281b..18868e4ae6e8 100644
@@ -565,7 +565,7 @@ static int rt715_dev_suspend(struct device *dev)
 
 static int rt715_dev_resume(struct device *dev)
 {
-	struct sdw_slave *slave = to_sdw_slave_device(dev);
+	struct sdw_slave *slave = dev_to_sdw_dev(dev);
 	struct rt715_priv *rt715 = dev_get_drvdata(dev);
 	unsigned long time;
 
Signature · 6 lines
2.20.1

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
maintainer
#1 lore raw
Quoted 4 lines · Pierre-Louis Bossart

The driver used a macro which was renamed during the joint Intel/SoundWire development, but since those renames were not merged by the SoundWire maintainer we have to revert to the original macros as done with the other Realtek codecs.

Morimoto-san already fixed this.

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel