Commit efc0ac5a authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] qt1010: Reduce text size by using static const

Using static const allows the compiler to optimize the code.

Before static const:
   text	   data	    bss	    dec	    hex	filename
   4982	    524	   1568	   7074	   1ba2	drivers/media/tuners/qt1010.o

After static const:
   text	   data	    bss	    dec	    hex	filename
   4714	    524	   1568	   6806	   1a96	drivers/media/tuners/qt1010.o
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent d202e1ba
...@@ -294,7 +294,7 @@ static int qt1010_init(struct dvb_frontend *fe) ...@@ -294,7 +294,7 @@ static int qt1010_init(struct dvb_frontend *fe)
int err = 0; int err = 0;
u8 i, tmpval, *valptr = NULL; u8 i, tmpval, *valptr = NULL;
qt1010_i2c_oper_t i2c_data[] = { static const qt1010_i2c_oper_t i2c_data[] = {
{ QT1010_WR, 0x01, 0x80 }, { QT1010_WR, 0x01, 0x80 },
{ QT1010_WR, 0x0d, 0x84 }, { QT1010_WR, 0x0d, 0x84 },
{ QT1010_WR, 0x0e, 0xb7 }, { QT1010_WR, 0x0e, 0xb7 },
......
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