diff options
author | Oder Chiou <oder_chiou@realtek.com> | 2014-03-28 13:28:25 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-14 18:27:41 +0200 |
commit | 2f2a714c1bed2702e5abf55381c03ccdf7b0fd06 (patch) | |
tree | cf774b1ec720971b7ef5ce23fe3a61564cf0a057 /sound/soc/codecs/rt5640.c | |
parent | ASoC: rt5640: Use the platform data for DMIC settings (diff) | |
download | linux-2f2a714c1bed2702e5abf55381c03ccdf7b0fd06.tar.xz linux-2f2a714c1bed2702e5abf55381c03ccdf7b0fd06.zip |
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: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/codecs/rt5640.c')
-rw-r--r-- | sound/soc/codecs/rt5640.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c index 6ede622ad44f..84ee7ef8eb17 100644 --- a/sound/soc/codecs/rt5640.c +++ b/sound/soc/codecs/rt5640.c @@ -59,7 +59,7 @@ static struct reg_default 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 }, { 0x01, 0xc8c8 }, { 0x02, 0xc8c8 }, |