summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2017-08-14 13:15:12 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-20 07:43:17 -0400
commite6db389d8040c23c2bdb0c99a8d7b83222a4a010 (patch)
tree250aa848fe9cc7a32be6a614094d3fd9e92ffcd1 /drivers/media/pci
parent0937e7e712074cc09b9d148f5fbf148717e0c3eb (diff)
downloadlinux-e6db389d8040c23c2bdb0c99a8d7b83222a4a010.tar.bz2
media: ddbridge: constify stv0910_p and lnbh25_cfg
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>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/ddbridge/ddbridge-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c
index a14031ac45cf..fb378cd9893d 100644
--- a/drivers/media/pci/ddbridge/ddbridge-core.c
+++ b/drivers/media/pci/ddbridge/ddbridge-core.c
@@ -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
};