Re: [alsa-devel] [PATCH 4/6] ASoC/mpc5200: add to_psc_dma_stream() helper

2009-11-07 Thread Mark Brown
On Sat, Nov 07, 2009 at 01:34:31AM -0700, Grant Likely wrote: > +/* Utility for retrieving psc_dma_stream structure from a substream */ > +inline struct psc_dma_stream * > +to_psc_dma_stream(struct snd_pcm_substream *substream, struct psc_dma > *psc_dma) > +{ > + if (substream->pstr->stream =

[PATCH 4/6] ASoC/mpc5200: add to_psc_dma_stream() helper

2009-11-07 Thread Grant Likely
Move the resolving of the psc_dma_stream pointer to a helper function to reduce duplicate code Signed-off-by: Grant Likely --- sound/soc/fsl/mpc5200_dma.c |7 +-- sound/soc/fsl/mpc5200_dma.h |9 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/sound/soc/fsl/