diff mbox

[1/6] ASoC: rt5640: Remove the pre-allocated size of reg_default

Message ID 1396009710-21324-1-git-send-email-oder_chiou@realtek.com (mailing list archive)
State Accepted
Commit 2f2a714c1bed2702e5abf55381c03ccdf7b0fd06
Headers show

Commit Message

Oder Chiou March 28, 2014, 12:28 p.m. UTC
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>
---
 sound/soc/codecs/rt5640.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown March 28, 2014, 12:52 p.m. UTC | #1
On Fri, Mar 28, 2014 at 08:28:25PM +0800, Oder Chiou wrote:
> In order to prevent the redundant memory usage, the pre-allocated size of
> reg_default should be remove.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/rt5640.c b/sound/soc/codecs/rt5640.c
index cf041e3..9427511 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 },