aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/mxl5xx.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2018-10-27 07:46:11 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-03 13:28:14 -0500
commit28fc5a367ef0d856a5f3f49a73a391a51b035fdb (patch)
tree23a66de70182a61239f3f5ce82d2968e07f6591f /drivers/media/dvb-frontends/mxl5xx.c
parentmedia: dvb-frontends: Use kmemdup instead of duplicating its function (diff)
downloadlinux-dev-28fc5a367ef0d856a5f3f49a73a391a51b035fdb.tar.xz
linux-dev-28fc5a367ef0d856a5f3f49a73a391a51b035fdb.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/media/dvb-frontends/mxl5xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/mxl5xx.c b/drivers/media/dvb-frontends/mxl5xx.c
index 6191315f5970..290b9eab099f 100644
--- a/drivers/media/dvb-frontends/mxl5xx.c
+++ b/drivers/media/dvb-frontends/mxl5xx.c
@@ -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",