]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ASoC: cleanup duplicated code.
authorIan Molton <ian@mnementh.co.uk>
Fri, 9 Jan 2009 00:23:21 +0000 (00:23 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 9 Jan 2009 10:39:49 +0000 (10:39 +0000)
commit3e8e1952e3a3dd59b11233a532ca68e6471742d9
tree3dff59c0b09cbcbc0e4b80a00cecd507219a821c
parenta6ba2b2dabb583e7820e567fb309d771b50cb9ff
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 <ian@mnementh.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
23 files changed:
include/sound/soc.h
sound/soc/codecs/ad1980.c
sound/soc/codecs/ak4535.c
sound/soc/codecs/ssm2602.c
sound/soc/codecs/tlv320aic23.c
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/twl4030.c
sound/soc/codecs/uda134x.c
sound/soc/codecs/uda1380.c
sound/soc/codecs/wm8350.c
sound/soc/codecs/wm8510.c
sound/soc/codecs/wm8580.c
sound/soc/codecs/wm8728.c
sound/soc/codecs/wm8731.c
sound/soc/codecs/wm8750.c
sound/soc/codecs/wm8753.c
sound/soc/codecs/wm8900.c
sound/soc/codecs/wm8903.c
sound/soc/codecs/wm8971.c
sound/soc/codecs/wm8990.c
sound/soc/codecs/wm9712.c
sound/soc/codecs/wm9713.c
sound/soc/soc-core.c