From: Ian Molton Date: Fri, 9 Jan 2009 00:23:21 +0000 (+0000) Subject: ASoC: cleanup duplicated code. X-Git-Tag: v2.6.30-rc1~8^2~164 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e8e1952e3a3dd59b11233a532ca68e6471742d9;p=pandora-kernel.git ASoC: cleanup duplicated code. Many codec drivers were implementing cookie-cutter copies of the function that adds kcontrols to the codec. This patch moves this code to a common function snd_soc_add_controls() in soc-core.c and updates all drivers using copies of this function to use the new common version. [Edited to raise priority of error log message and document parameters. -- broonie] Signed-off-by: Ian Molton Signed-off-by: Mark Brown --- Reading git-diff-tree failed