提交 19b4b729 编写于 作者: A Axel Lin 提交者: Mark Brown

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: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 5771a8c0
......@@ -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 },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册