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>
This commit is contained in:
Axel Lin 2017-08-02 17:55:13 +08:00 committed by Mark Brown
parent 5771a8c088
commit 19b4b72926
1 changed files with 1 additions and 1 deletions

View File

@ -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 },