[media] gspca: make arrays static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Tue, 12 Sep 2017 11:08:13 +0000 (08:08 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 19:57:01 +0000 (16:57 -0300)
commit022565200a4f27ffcf9315b2194ca9454059d6b1
tree90ac9c216283b114bb2e62ee387fdc155bed42b6
parentbc66c99a7e65d3964b4c5d10f574d462f40ae48e
[media] gspca: make arrays static, reduces object code size

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

Before:
   text    data     bss     dec     hex filename
  58259    8880     128   67267   106c3 ov519.o

After:
   text    data     bss     dec     hex filename
  52155    9776     128   62059    f26b ov519.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@osg.samsung.com>
drivers/media/usb/gspca/ov519.c