Commit e6db389d authored by Julia Lawall's avatar Julia Lawall Committed by Mauro Carvalho Chehab

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 0937e7e7
......@@ -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
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment