From: Kuninori Morimoto Date: Thu, 20 Jan 2011 02:45:51 +0000 (+0900) Subject: ASoC: sh: fsi: Add fsi_get_priv_frm_dai function X-Git-Tag: MMI-PSA29.97-13-9~16612^2~1226^2~47 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0d032c19e764ad2f60292f58116f6c2a052a58ab;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: sh: fsi: Add fsi_get_priv_frm_dai function Signed-off-by: Kuninori Morimoto Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 2b06402801ef..1d0a16e80919 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c @@ -252,9 +252,8 @@ static struct snd_soc_dai *fsi_get_dai(struct snd_pcm_substream *substream) return rtd->cpu_dai; } -static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream) +static struct fsi_priv *fsi_get_priv_frm_dai(struct snd_soc_dai *dai) { - struct snd_soc_dai *dai = fsi_get_dai(substream); struct fsi_master *master = snd_soc_dai_get_drvdata(dai); if (dai->id == 0) @@ -263,6 +262,11 @@ static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream) return &master->fsib; } +static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream) +{ + return fsi_get_priv_frm_dai(fsi_get_dai(substream)); +} + static u32 fsi_get_info_flags(struct fsi_priv *fsi) { int is_porta = fsi_is_port_a(fsi);