]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: wm8523: Fix array size for bclk_ratios
authorAxel Lin <axel.lin@ingics.com>
Wed, 2 Aug 2017 09:55:13 +0000 (17:55 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 2 Aug 2017 10:19:13 +0000 (11:19 +0100)
commit19b4b7292615358b9599ff9410a3e564b4844e90
tree47d62b1f6e76bf9cf48c66d5352c4bf6f721aaf4
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
ASoC: wm8523: Fix array size for bclk_ratios

ARRAY_SIZE(bclk_ratios) returns 7 for current code, then it cannot catch
the error if "no matching BCLK/fs ratio". Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8523.c