From: Julia Lawall Date: Mon, 14 Aug 2017 17:15:12 +0000 (-0400) Subject: media: ddbridge: constify stv0910_p and lnbh25_cfg X-Git-Tag: v4.14-rc6~35^2~324 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6db389d8040c23c2bdb0c99a8d7b83222a4a010;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c index a14031a..fb378cd 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 };