]> git.baikalelectronics.ru Git - kernel.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)
commiteea30713de4de9d7f5d3135d6a1ee1cc76de7c61
tree5b50655c0b67ad0107488df0c670c590749aede5
parenta82f83c651990c27fa7e22090a5fd09005345659
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