ASoC: TSCS42xx: make const array norm_addrs static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Wed, 14 Feb 2018 17:21:53 +0000 (17:21 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 15 Feb 2018 15:17:19 +0000 (15:17 +0000)
commit390f7bbdd7c8f812e22100248b0ed7ae1f68b8c9
treea5bf52768b6f9dd978a7fd1d2ce79ecc2acbe640
parent4e46c228c793d1a537deb1d26ed31a9b0543a20f
ASoC: TSCS42xx: make const array norm_addrs static, reduces object code size

Don't populate the const array norm_addrs on the stack, instead make it
static.  Makes the object code smaller by over 230 bytes.  Also re-format
array data as the insertion of the static keywork made the first line
overly long.

Before:
   text    data     bss     dec     hex filename
  53780   34752     256   88788   15ad4 linux/sound/soc/codecs/tscs42xx.o

After:
   text    data     bss     dec     hex filename
  53461   34840     256   88557   159ed linux/sound/soc/codecs/tscs42xx.o

(gcc version 7.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tscs42xx.c