From: Misael Lopez Cruz Date: Fri, 21 Mar 2014 15:27:25 +0000 (+0100) Subject: ASoC: core: Add helpers for codec and codec_dai search X-Git-Tag: omap-for-v3.16/fixes-against-rc1~21^2~52^2~3^8~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12023a9af8f6602e09d9276d3476f6861ca0f127;p=pandora-kernel.git ASoC: core: Add helpers for codec and codec_dai search Add dedicated helpers for codec and codec_dai search in preparation for DAI-multicodec. It will help reducing the extra indentation that will be introduced by the iteration over multiple codecs. Previous implementation unnecessarily kept searching for a matching codec in the remaining register codecs even if it was already found. Fix that by returning in case of matching. Signed-off-by: Misael Lopez Cruz [fparent@baylibre.com: Adapt to 3.14+] Signed-off-by: Fabien Parent Signed-off-by: Benoit Cousson Signed-off-by: Mark Brown --- Reading git-diff-tree failed