media: cx25840: make array stds static const, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Tue, 5 Sep 2017 11:03:32 +0000 (07:03 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Sep 2017 12:29:26 +0000 (08:29 -0400)
commit2be730b828c59fc776c8045883c1dc7a37d7b457
tree893e7a4d1256eae209ab346b1136e06eb2f16acc
parent1f679ff6c761729607630c731c8bae0f8691ae79
media: cx25840: make array stds static const, reduces object code size

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

Before:
   text    data     bss     dec     hex filename
  81451   12784     704   94939   172db cx25840-core.o

   text    data     bss     dec     hex filename
  81070   12880     704   94654   171be cx25840-core.o

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/cx25840/cx25840-core.c