Commit 2f2a714c authored by Oder Chiou's avatar Oder Chiou Committed by Mark Brown

ASoC: rt5640: Remove the pre-allocated size of reg_default

In order to prevent the redundant memory usage, the pre-allocated size of
reg_default should be remove.
Signed-off-by: default avatarOder Chiou <oder_chiou@realtek.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 71d97a79
...@@ -59,7 +59,7 @@ static struct reg_default init_list[] = { ...@@ -59,7 +59,7 @@ static struct reg_default init_list[] = {
}; };
#define RT5640_INIT_REG_LEN ARRAY_SIZE(init_list) #define RT5640_INIT_REG_LEN ARRAY_SIZE(init_list)
static const struct reg_default rt5640_reg[RT5640_VENDOR_ID2 + 1] = { static const struct reg_default rt5640_reg[] = {
{ 0x00, 0x000e }, { 0x00, 0x000e },
{ 0x01, 0xc8c8 }, { 0x01, 0xc8c8 },
{ 0x02, 0xc8c8 }, { 0x02, 0xc8c8 },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment