media: cx88: make const arrays default_addr_list and pvr2000_addr_list static
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Nov 2017 17:16:59 +0000 (13:16 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 7 Nov 2017 09:02:53 +0000 (04:02 -0500)
commit4b8a14c8f89def80e50a3feb5b8b797cd54e1f2a
treea6066ab28790d12628dd09455981126bea17685d
parenteaa8c79eadc04b06d1434be09207074c9989cefb
media: cx88: make const arrays default_addr_list and pvr2000_addr_list static

Don't populate arrays default_addr_list and pvr2000_addr_list on the
stack but instead make them static. Makes the object code smaller by
over 340 bytes:

Before:
   text    data     bss     dec     hex filename
  12520    2800      64   15384    3c18 drivers/media/pci/cx88/cx88-input.o

After:
   text    data     bss     dec     hex filename
  12142    2832      64   15038    3abe drivers/media/pci/cx88/cx88-input.o

(gcc version 7.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/cx88/cx88-input.c