summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2017-08-02 17:55:13 +0800
committerMark Brown <broonie@kernel.org>2017-08-02 11:19:13 +0100
commit19b4b7292615358b9599ff9410a3e564b4844e90 (patch)
tree47d62b1f6e76bf9cf48c66d5352c4bf6f721aaf4 /sound
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff)
downloadop-kernel-dev-19b4b7292615358b9599ff9410a3e564b4844e90.zip
op-kernel-dev-19b4b7292615358b9599ff9410a3e564b4844e90.tar.gz
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8523.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c
index 6d0a272..b1e4ce7 100644
--- a/sound/soc/codecs/wm8523.c
+++ b/sound/soc/codecs/wm8523.c
@@ -116,7 +116,7 @@ static struct {
static struct {
int value;
int ratio;
-} bclk_ratios[WM8523_NUM_RATES] = {
+} bclk_ratios[] = {
{ 2, 32 },
{ 3, 64 },
{ 4, 128 },
OpenPOWER on IntegriCloud