media: dvb-frontends: tda18271c2dd: Constify static structs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Mon, 21 Sep 2020 22:13:43 +0000 (00:13 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 27 Sep 2020 09:26:00 +0000 (11:26 +0200)
commit2d4ffef1de00c883649b934bcc20109e28d2c9b4
tree38f54c29bb61e338cd49e37c4304f9fbc2c5974e
parentcf580e11fb6c94bc995dddc55489c65d0499cdd9
media: dvb-frontends: tda18271c2dd: Constify static structs

Constify a number of static structs that were not modified. In order to
be able to do that, const input arguments to a couple of functions that
not modify their argument. This allows the compiler to put them in
read-only memory, resulting in about 6k memory being read-only, and the
resulting module is 400 bytes smaller.

Before:
   text    data     bss     dec     hex filename
  15492    6873       0   22365    575d drivers/media/dvb-frontends/tda18271c2dd.ko

After:
   text    data     bss     dec     hex filename
  21021     897       0   21918    559e drivers/media/dvb-frontends/tda18271c2dd.ko

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-frontends/tda18271c2dd.c
drivers/media/dvb-frontends/tda18271c2dd_maps.h