]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt1011: make array pd static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Sat, 7 Sep 2019 07:37:17 +0000 (08:37 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Sep 2019 09:51:36 +0000 (10:51 +0100)
commit86c8b179577d2a8f856761edef003dab8f0b9911
tree590d2a256a8b504e157fb00bda2219f1645e9ebf
parent1ec9fa2493d3c2cffe52b648cc0eb00a77e7b613
ASoC: rt1011: make array pd static const, makes object smaller

Don't populate the array pd on the stack but instead make it
static const. Makes the object code smaller by 100 bytes.

Before:
   text    data     bss     dec     hex filename
  51463   13016     128   64607    fc5f sound/soc/codecs/rt1011.o

After:
   text    data     bss     dec     hex filename
  51299   13080     128   64507    fbfb sound/soc/codecs/rt1011.o

(gcc version 9.2.1, amd64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190907073717.21632-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt1011.c