Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

authored by

Julia Lawall and committed by
Mauro Carvalho Chehab
28fc5a36 2c4746cf

+1 -1
+1 -1
drivers/media/dvb-frontends/mxl5xx.c
··· 781 781 return 0; 782 782 } 783 783 784 - static struct dvb_frontend_ops mxl_ops = { 784 + static const struct dvb_frontend_ops mxl_ops = { 785 785 .delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS }, 786 786 .info = { 787 787 .name = "MaxLinear MxL5xx DVB-S/S2 tuner-demodulator",