summaryrefslogtreecommitdiffstats
path: root/lib/bitrev.c
diff options
context:
space:
mode:
authorRyan Mallon <rmallon@gmail.com>2011-10-04 09:55:40 +1100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-04 12:03:35 +0100
commit8754f2263fb0961c6dd26b4b4cbe73a4e632aa62 (patch)
treea6d4bc7bf396c0e5623d702d134c79855fa3f7a6 /lib/bitrev.c
parent81204c84ca46604a04ab3d43ccfa1e464e6b1303 (diff)
downloadlinux-8754f2263fb0961c6dd26b4b4cbe73a4e632aa62.tar.bz2
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 <rmallon@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'lib/bitrev.c')
0 files changed, 0 insertions, 0 deletions