From: Ryan Mallon Date: Mon, 3 Oct 2011 22:55:40 +0000 (+1100) Subject: ASoC: max98088 codec: Catch driver bugs for eq channel name X-Git-Tag: v3.2-rc1~127^2~1^2~171 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8754f2263fb0961c6dd26b4b4cbe73a4e632aa62;p=pandora-kernel.git ASoC: max98088 codec: Catch driver bugs for eq channel name Move the EQ channel names to a separate array and iterate over it in max98088_get_channel rather than duplicating the hardcoded channel names. Add an error message if an invalid channel is passed and check the error in the callers. Also added a BUILD_BUG_ON to ensure that the eq_mode_name and controls arrays are the same size. Signed-off-by: Ryan Mallon Signed-off-by: Mark Brown --- Reading git-diff-tree failed