media: tuners: mxl5005s: make arrays static const, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Fri, 8 Sep 2017 21:08:51 +0000 (17:08 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 15:04:22 +0000 (10:04 -0500)
commit06ac35e52ba7d934501a37c308c1b0163c706dbf
tree37d773ea9ec7b7a311d5e63791e6376118b9330d
parentf54fb924a93b2e74acc0b7033a4b89d2d7886eb3
media: tuners: mxl5005s: make arrays static const, reduces object code size

Don't populate the arrays RegAddr on the stack, instead make them static
const.  Makes the object code smaller by over 980 bytes:

Before:
   text    data     bss     dec     hex filename
  64923     304       0   65227    fecb drivers/media/tuners/mxl5005s.o

After:
   text    data     bss     dec     hex filename
  63779     464       0   64243    faf3 drivers/media/tuners/mxl5005s.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/tuners/mxl5005s.c