summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/dib0090.c
diff options
context:
space:
mode:
authorColin Ian King2017-07-13 14:00:20 +0200
committerMauro Carvalho Chehab2017-07-20 21:08:12 +0200
commit6e4e4447d446f692b8528cecefae2ff5110bf877 (patch)
tree5291fe5d59e82d27a0043e219e806898fbe52b33 /drivers/media/dvb-frontends/dib0090.c
parentmedia: drxj: make several const arrays static (diff)
downloadkernel-qcow2-linux-6e4e4447d446f692b8528cecefae2ff5110bf877.tar.gz
kernel-qcow2-linux-6e4e4447d446f692b8528cecefae2ff5110bf877.tar.xz
kernel-qcow2-linux-6e4e4447d446f692b8528cecefae2ff5110bf877.zip
media: dib0090: make const array dib0090_tuning_table_cband_7090e_aci static
Don't populate array dib0090_tuning_table_cband_7090e_aci on the stack but instead make it static. Makes the object code smaller by over 180 bytes: Before: text data bss dec hex filename 40052 7320 192 47564 b9cc dib0090.o After: text data bss dec hex filename 39780 7408 192 47380 b914 dib0090.o Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/dib0090.c')
-rw-r--r--drivers/media/dvb-frontends/dib0090.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/dib0090.c b/drivers/media/dvb-frontends/dib0090.c
index 33af14df27bd..ae53a199b7af 100644
--- a/drivers/media/dvb-frontends/dib0090.c
+++ b/drivers/media/dvb-frontends/dib0090.c
@@ -2052,7 +2052,7 @@ int dib0090_update_tuning_table_7090(struct dvb_frontend *fe,
struct dib0090_state *state = fe->tuner_priv;
const struct dib0090_tuning *tune =
dib0090_tuning_table_cband_7090e_sensitivity;
- const struct dib0090_tuning dib0090_tuning_table_cband_7090e_aci[] = {
+ static const struct dib0090_tuning dib0090_tuning_table_cband_7090e_aci[] = {
{ 300000, 0 , 3, 0x8165, 0x2c0, 0x2d12, 0xb84e, EN_CAB },
{ 650000, 0 , 4, 0x815B, 0x280, 0x2d12, 0xb84e, EN_CAB },
{ 860000, 0 , 5, 0x84EF, 0x280, 0x2d12, 0xb84e, EN_CAB },