]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: rl6231: make arrays div and pd static const, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Tue, 19 Sep 2017 21:50:00 +0000 (22:50 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2017 22:00:45 +0000 (23:00 +0100)
commit57f7feff2912d6996b5f3fcac084308ce195127c
treeb87c8007108853e034d5a843599e61a8083f046a
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
ASoC: rl6231: make arrays div and pd static const, reduces object code size

Don't populate the read-only arrays div and pd on the stack,
instead make them static const. Makes the object code smaller by 210 bytes:

Before:
   text    data     bss     dec     hex filename
   2869     720       0    3589     e05 sound/soc/codecs/rl6231.o

After:
   text    data     bss     dec     hex filename
   2495     880       0    3375     d2f sound/soc/codecs/rl6231.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rl6231.c