]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: Add dapm_find_widget helper
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 27 Apr 2011 16:34:31 +0000 (18:34 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 27 Apr 2011 21:33:13 +0000 (22:33 +0100)
commit91a5fca4b1987324f829efeff3bc5efb2ce6e752
tree5b50655c0b67ad0107488df0c670c590749aede5
parentb864a8c9dd93f08ccaa706e075810e9398e25680
ASoC: Add dapm_find_widget helper

This patch adds a helper function for searching DAPM widgets by name.
This allows to streamline functions which operate on widgets by name.
It also allows to get rid of copy'n'pasted code which was added to fallback to
widgets from other contexts if the widget was not found in the current context.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c