ASoC: davinci-pcm: trivial: replace link with actual chan/link
authorBen Gardiner <bengardiner@nanometrics.ca>
Fri, 9 Sep 2011 21:06:05 +0000 (17:06 -0400)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 16 Sep 2011 09:12:47 +0000 (10:12 +0100)
commitbe4ff9612271ac63e16bb2a8e6666e62538b60ea
treeeb08c8975d301f42ea3c241c5f1a5a9d5c3cd6e3
parent8a386ca26d51d477729f2b54e9d81bd97da4467e
ASoC: davinci-pcm: trivial: replace link with actual chan/link

The ambiguously named variable 'link' is used as a temporary throughout
davinci-pcm -- its presence makes grepping (and groking) the code
difficult.

Replace link with the value of link in almost all sites. The exception
is a couple places where the last-assigned link/chan needs to be
returned by a function -- in these cases, rename to last_link.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/davinci/davinci-pcm.c