ASoC: rsnd: make some arrays static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Sun, 1 Aug 2021 06:32:37 +0000 (07:32 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Aug 2021 11:14:05 +0000 (12:14 +0100)
commit6dfeb70276def839aa605edd274f8e9f6189dba3
treef3e779595051cdc98d96cff62196592bfb95c65c
parent219691cf360136591e627badbd62f54097f99fc0
ASoC: rsnd: make some arrays static const, makes object smaller

Don't populate arrays on the stack but instead them static const.
Makes the object code smaller by 242 bytes.

Before:
   text    data     bss     dec     hex filename
  23827    8764       0   32591    7f4f ./sound/soc/sh/rcar/ssi.o

After:
   text    data     bss     dec     hex filename
  23361    8988       0   32349    7e5d ./sound/soc/sh/rcar/ssi.o

gcc version 10.2.0)

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