Skip to content

Commit fe42c3b

Browse files
krzkbroonie
authored andcommitted
ASoC: kirkwood: Use snd_soc_substream_to_rtd() for accessing private_data
Do not open-code snd_soc_substream_to_rtd(). Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3b62178 commit fe42c3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/kirkwood/kirkwood-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
static struct kirkwood_dma_data *kirkwood_priv(struct snd_pcm_substream *subs)
2121
{
22-
struct snd_soc_pcm_runtime *soc_runtime = subs->private_data;
22+
struct snd_soc_pcm_runtime *soc_runtime = snd_soc_substream_to_rtd(subs);
2323
return snd_soc_dai_get_drvdata(snd_soc_rtd_to_cpu(soc_runtime, 0));
2424
}
2525

0 commit comments

Comments
 (0)