Skip to content

Commit

Permalink
ASoC: wm8523: Fix array size for bclk_ratios
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
AxelLin authored and broonie committed Aug 2, 2017
1 parent 5771a8c commit 19b4b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8523.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 19b4b72

Please sign in to comment.