]> git.baikalelectronics.ru Git - kernel.git/commit
media: mb86a20s: make arrays static const
authorColin Ian King <colin.king@canonical.com>
Wed, 15 Sep 2021 11:56:00 +0000 (13:56 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 8 Oct 2021 11:43:54 +0000 (13:43 +0200)
commit36ca671eb318574d54eaf6c018b209cfd82bc589
tree49bcd77ad33eaabdf1864a1905df283bc0173a08
parent2589b16415eab829d0447a5ad9483c0f3d6489ff
media: mb86a20s: make arrays static const

Don't populate the read-only arrays on the stack but instead them
static const. Also makes the object code smaller by 154 bytes:

Before:
   text    data     bss     dec     hex filename
  42949   22424       0   65373    ff5d media/dvb-frontends/mb86a20s.o

After:
   text    data     bss     dec     hex filename
  42731   22488       0   65219    fec3 media/dvb-frontends/mb86a20s.o

(gcc version 11.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-frontends/mb86a20s.c