Skip to content

Commit 72a666f

Browse files
krzkbroonie
authored andcommitted
ASoC: ti: 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-3-6f8a8902b479@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3beb985 commit 72a666f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/ti/omap-hdmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ struct hdmi_audio_data {
4040
static
4141
struct hdmi_audio_data *card_drvdata_substream(struct snd_pcm_substream *ss)
4242
{
43-
struct snd_soc_pcm_runtime *rtd = ss->private_data;
43+
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(ss);
4444

4545
return snd_soc_card_get_drvdata(rtd->card);
4646
}

0 commit comments

Comments
 (0)