]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ak4642: make arrays fs_list and ps_list static const
authorColin Ian King <colin.king@canonical.com>
Fri, 30 Jun 2017 09:16:36 +0000 (10:16 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 30 Jun 2017 10:38:20 +0000 (11:38 +0100)
commit4eb91952860723e70e39a7222af5a37e9c5eb835
tree2f1dd99a2a5e4e0edc631f2c35ff2a4e00481559
parent6a0fa58cdd92da9a8e6fa4e621cabd91974091b3
ASoC: ak4642: make arrays fs_list and ps_list static const

Don't populate the arrays fs_list and ps_list on the stack but make
them static const.  Makes the object code smaller:

Before:
   text    data     bss     dec     hex filename
  12084    4888      64   17036    428c sound/soc/codecs/ak4642.o

After:
   text    data     bss     dec     hex filename
  11883    5032      64   16979    4253 sound/soc/codecs/ak4642.o

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