OSDN Git Service

[media] ov2640: make array reset_seq static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Tue, 12 Sep 2017 09:11:15 +0000 (06:11 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 20:21:28 +0000 (17:21 -0300)
commit91c158dd26b82207c80970b85ff7aa473da42312
tree5648497c8c483c6417bcd6d353b74e866d349891
parent885ca801e36d77c2d0025486b178c585a4680a80
[media] ov2640: make array reset_seq static, reduces object code size

Don't populate the array reset_seq on the stack, instead make it
static.  Makes the object code smaller by over 50 bytes:

Before:
   text    data     bss     dec     hex filename
  11737    6000      64   17801    4589 drivers/media/i2c/ov2640.o

After:
   text    data     bss     dec     hex filename
  11582    6096      64   17742    454e drivers/media/i2c/ov2640.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/ov2640.c