ASoC: rsnd: core: make some arrays static const, makes object smaller
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 20 Aug 2021 04:09:14 +0000 (13:09 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 20 Aug 2021 12:07:25 +0000 (13:07 +0100)
commit28889de643cd14617e28f862e6763754ad28f7c4
tree664ce13a096d6281bba90bdff67d16d736b77102
parent5d925d9823aaf18d55fab784bd4ef11f80fe1099
ASoC: rsnd: core: 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 48 bytes.

Before:
   text    data     bss     dec     hex filename
  20938     916     104   21958    55c6 ./sound/soc/sh/rcar/core.o

After:
   text    data     bss     dec     hex filename
  20890     916     104   21910    5596 ./sound/soc/sh/rcar/core.o

gcc version 11.1.0)

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87tujkwydx.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c