Commit 91c158dd authored by Colin Ian King's avatar Colin Ian King Committed by Mauro Carvalho Chehab

[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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 885ca801
...@@ -685,7 +685,7 @@ static int ov2640_mask_set(struct i2c_client *client, ...@@ -685,7 +685,7 @@ static int ov2640_mask_set(struct i2c_client *client,
static int ov2640_reset(struct i2c_client *client) static int ov2640_reset(struct i2c_client *client)
{ {
int ret; int ret;
const struct regval_list reset_seq[] = { static const struct regval_list reset_seq[] = {
{BANK_SEL, BANK_SEL_SENS}, {BANK_SEL, BANK_SEL_SENS},
{COM7, COM7_SRST}, {COM7, COM7_SRST},
ENDMARKER, ENDMARKER,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment