Skip to content

Commit 19b4b72

Browse files
AxelLinbroonie
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 5771a8c commit 19b4b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/codecs/wm8523.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static struct {
116116
static struct {
117117
int value;
118118
int ratio;
119-
} bclk_ratios[WM8523_NUM_RATES] = {
119+
} bclk_ratios[] = {
120120
{ 2, 32 },
121121
{ 3, 64 },
122122
{ 4, 128 },

0 commit comments

Comments
 (0)