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

media: solo6x10: make const array saa7128_regs_ntsc static

Don't populate const array saa7128_regs_ntsc on the stack but insteaed make
it static.  Makes the object code smaller and saves nearly 840 bytes

Before:
   text	   data	    bss	    dec	    hex	filename
   9218	    360	      0	   9578	   256a	solo6x10-tw28.o

After:
   text	   data	    bss	    dec	    hex	filename
   8237	    504	      0	   8741	   2225	solo6x10-tw28.o
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarAndrey Utkin <andrey_utkin@fastmail.com>
Signed-off-by: default avatarIsmael Luceno <ismael@iodev.co.uk>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 57d8ba0f
...@@ -532,7 +532,7 @@ static void saa712x_write_regs(struct solo_dev *dev, const u8 *vals, ...@@ -532,7 +532,7 @@ static void saa712x_write_regs(struct solo_dev *dev, const u8 *vals,
static void saa712x_setup(struct solo_dev *dev) static void saa712x_setup(struct solo_dev *dev)
{ {
const int reg_start = 0x26; const int reg_start = 0x26;
const u8 saa7128_regs_ntsc[] = { static const u8 saa7128_regs_ntsc[] = {
/* :0x26 */ /* :0x26 */
0x0d, 0x00, 0x0d, 0x00,
/* :0x28 */ /* :0x28 */
......
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