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 <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240430-asoc-snd-substream-clean-v1-8-6f8a8902b479@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3b62178 commit fe42c3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)