Commit e5c50e13 authored by Colin Ian King's avatar Colin Ian King Committed by Mauro Carvalho Chehab
Browse files

media: fc001[23]: make const gain table arrays static



Don't populate the gain tables on the stack but make them static const.
Makes the object code smaller:

Before:
   text	   data	    bss	    dec	    hex	filename
   7801	   1408	      0	   9209	   23f9	drivers/media/tuners/fc0012.o
   8483	    936	      0	   9419	   24cb	drivers/media/tuners/fc0013.o

After:
   text	   data	    bss	    dec	    hex	filename
   7696	   1464	      0	   9160	   23c8	drivers/media/tuners/fc0012.o
   8362	   1024	      0	   9386	   24aa	drivers/media/tuners/fc0013.o

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent d7552a1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -351,7 +351,7 @@ static int fc0012_get_rf_strength(struct dvb_frontend *fe, u16 *strength)
	int ret;
	unsigned char tmp;
	int int_temp, lna_gain, int_lna, tot_agc_gain, power;
	const int fc0012_lna_gain_table[] = {
	static const int fc0012_lna_gain_table[] = {
		/* low gain */
		-63, -58, -99, -73,
		-63, -65, -54, -60,
+1 −1
Original line number Diff line number Diff line
@@ -511,7 +511,7 @@ static int fc0013_get_rf_strength(struct dvb_frontend *fe, u16 *strength)
	int ret;
	unsigned char tmp;
	int int_temp, lna_gain, int_lna, tot_agc_gain, power;
	const int fc0013_lna_gain_table[] = {
	static const int fc0013_lna_gain_table[] = {
		/* low gain */
		-63, -58, -99, -73,
		-63, -65, -54, -60,