]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt1305: make array pd static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Sat, 7 Sep 2019 07:41:56 +0000 (08:41 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Sep 2019 09:51:52 +0000 (10:51 +0100)
commit2cc79278bd87b86918fc1280d4bf6e8b61162f05
tree6a99eef9ed69105669ec57246c7d0fc47014bc27
parenteeb052f76a3ddd08aff76550e45d0204a3c67c09
ASoC: rt1305: 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 93 bytes.

Before:
   text    data     bss     dec     hex filename
  38961    9784      64   48809    bea9 sound/soc/codecs/rt1305.o

After:
   text    data     bss     dec     hex filename
  38804    9848      64   48716    be4c sound/soc/codecs/rt1305.o

(gcc version 9.2.1, amd64)

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