aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/tuners/fc0013.c
diff options
context:
space:
mode:
authorGravatar Colin Ian King <colin.king@canonical.com> 2017-07-11 05:43:49 -0400
committerGravatar Mauro Carvalho Chehab <mchehab@s-opensource.com> 2017-07-19 15:12:39 -0400
commite5c50e130ddc7976a989b1412ded4cd35ac7a8b0 (patch)
treea9564d66a568e9c04da0dd6110f09c33d1bfbf9d /drivers/media/tuners/fc0013.c
parentmedia: solo6x10: make const array saa7128_regs_ntsc static (diff)
downloadlinux-e5c50e130ddc7976a989b1412ded4cd35ac7a8b0.tar.gz
linux-e5c50e130ddc7976a989b1412ded4cd35ac7a8b0.tar.bz2
linux-e5c50e130ddc7976a989b1412ded4cd35ac7a8b0.zip
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/tuners/fc0013.c')
-rw-r--r--drivers/media/tuners/fc0013.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/tuners/fc0013.c b/drivers/media/tuners/fc0013.c
index 91dfa770a5cc..e606118d1a9b 100644
--- a/drivers/media/tuners/fc0013.c
+++ b/drivers/media/tuners/fc0013.c
@@ -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,