media: mxl5xx: constify dvb_frontend_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 27 Oct 2018 11:46:11 +0000 (07:46 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 3 Dec 2018 18:28:14 +0000 (13:28 -0500)
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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/dvb-frontends/mxl5xx.c

index 6191315f5970957c7f47896b03c82b96967fd7b0..290b9eab099ff756227753f3bc220fb146118f09 100644 (file)
@@ -781,7 +781,7 @@ static int set_input(struct dvb_frontend *fe, int input)
        return 0;
 }
 
-static struct dvb_frontend_ops mxl_ops = {
+static const struct dvb_frontend_ops mxl_ops = {
        .delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS },
        .info = {
                .name                   = "MaxLinear MxL5xx DVB-S/S2 tuner-demodulator",