[media] media: imon: make two const arrays static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Tue, 5 Sep 2017 12:07:50 +0000 (09:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 18:25:53 +0000 (15:25 -0300)
commitc25895c7d6c957124ceb3b090b7eaa68b1d3bf54
tree4183ff9ed6c70fc3481b3ea0d034ba45cd260b52
parent771f87268e8cd0e50719eb20f0b613ec4b2a19ec
[media] media: imon: make two const arrays static, reduces object code size

Don't populate the const arrays vfd_packet6 and fp_packet on the
stack, instead make them static.  Makes the object code smaller
by over 600 bytes:

Before:
   text    data     bss     dec     hex filename
  43794   17920    1024   62738    f512 drivers/media/rc/imon.o

After:
   text    data     bss     dec     hex filename
  42994   18080    1024   62098    f292 drivers/media/rc/imon.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/imon.c