]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit48532a999e7039541395bc0cd08501c6df4f7060
treeeb08c8975d301f42ea3c241c5f1a5a9d5c3cd6e3
parent5f066db4d7245055594463175b4708f3148d3b66
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