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

media: mxl5xx: constify dvb_frontend_ops structure

The dvb_frontend_ops structure is only copied into the ops field
of a dvb_frontend structure, so it can be const.

Done with the help of Coccinelle.
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 2c4746cf
...@@ -781,7 +781,7 @@ static int set_input(struct dvb_frontend *fe, int input) ...@@ -781,7 +781,7 @@ static int set_input(struct dvb_frontend *fe, int input)
return 0; return 0;
} }
static struct dvb_frontend_ops mxl_ops = { static const struct dvb_frontend_ops mxl_ops = {
.delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS }, .delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS },
.info = { .info = {
.name = "MaxLinear MxL5xx DVB-S/S2 tuner-demodulator", .name = "MaxLinear MxL5xx DVB-S/S2 tuner-demodulator",
......
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