Commit 3e8e1952 authored by Committed by Mark BrownBrowse files
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 <firstname.lastname@example.org> Signed-off-by: Mark Brown <email@example.com>