]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
media: ddbridge: constify stv0910_p and lnbh25_cfg
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 14 Aug 2017 17:15:12 +0000 (13:15 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 11:43:17 +0000 (07:43 -0400)
These structures are only copied into other structures, so
they can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ddbridge/ddbridge-core.c

index a14031ac45cf8e24b86956fc221f6f0f0e84824c..fb378cd9893da10aa2b6e7f6fa606aa657fe4de5 100644 (file)
@@ -1152,14 +1152,14 @@ static int tuner_attach_stv6110(struct ddb_input *input, int type)
        return 0;
 }
 
-static struct stv0910_cfg stv0910_p = {
+static const struct stv0910_cfg stv0910_p = {
        .adr      = 0x68,
        .parallel = 1,
        .rptlvl   = 4,
        .clk      = 30000000,
 };
 
-static struct lnbh25_config lnbh25_cfg = {
+static const struct lnbh25_config lnbh25_cfg = {
        .i2c_address = 0x0c << 1,
        .data2_config = LNBH25_TEN
 };