ASoC: rt1308: make array pd static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Sat, 7 Sep 2019 07:46:34 +0000 (08:46 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Sep 2019 09:52:07 +0000 (10:52 +0100)
commit13ab0d1ab8ae4d1b3b247fd5caec2c10e35c7269
tree4de6b92da89d282a6227d8a3a0c72eeddc565af8
parentb61b1e35ed06db180968cb5ca0fbf8b8887ccb93
ASoC: rt1308: 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 82 bytes.

Before:
   text    data     bss     dec     hex filename
  26548    7288      64   33900    846c sound/soc/codecs/rt1308.o

After:
   text    data     bss     dec     hex filename
  26370    7384      64   33818    841a sound/soc/codecs/rt1308.o

(gcc version 9.2.1, amd64)

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