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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3beb985 commit 72a666f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)