aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/i2c/ov2640.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-12 06:11:15 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2017-10-04 17:21:28 -0300
commit91c158dd26b82207c80970b85ff7aa473da42312 (patch)
tree5648497c8c483c6417bcd6d353b74e866d349891 /drivers/media/i2c/ov2640.c
parent[media] media: Check for active and has_no_links overrun (diff)
downloadwireguard-linux-91c158dd26b82207c80970b85ff7aa473da42312.tar.xz
wireguard-linux-91c158dd26b82207c80970b85ff7aa473da42312.zip
[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>
Diffstat (limited to 'drivers/media/i2c/ov2640.c')
-rw-r--r--drivers/media/i2c/ov2640.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov2640.c b/drivers/media/i2c/ov2640.c
index cc3882c1e10e..38b8bab7e6aa 100644
--- a/drivers/media/i2c/ov2640.c
+++ b/drivers/media/i2c/ov2640.c
@@ -685,7 +685,7 @@ static int ov2640_mask_set(struct i2c_client *client,
static int ov2640_reset(struct i2c_client *client)
{
int ret;
- const struct regval_list reset_seq[] = {
+ static const struct regval_list reset_seq[] = {
{BANK_SEL, BANK_SEL_SENS},
{COM7, COM7_SRST},
ENDMARKER,