summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/stv6110x.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-12-06 16:34:26 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-01 10:31:17 +0100
commit242c5033508991221d787043b734740770c850be (patch)
tree8f1bd6cd33530c6f75313c436247f463180d7d2a /drivers/media/dvb-frontends/stv6110x.h
parent[media] em28xx: add media controller support (diff)
downloadlinux-242c5033508991221d787043b734740770c850be.tar.xz
linux-242c5033508991221d787043b734740770c850be.zip
[media] constify stv6110x_devctl structure
The stv6110x_devctl structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/stv6110x.h')
-rw-r--r--drivers/media/dvb-frontends/stv6110x.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/stv6110x.h b/drivers/media/dvb-frontends/stv6110x.h
index 9f7eb251aec3..696b6e5b9e7b 100644
--- a/drivers/media/dvb-frontends/stv6110x.h
+++ b/drivers/media/dvb-frontends/stv6110x.h
@@ -55,12 +55,12 @@ struct stv6110x_devctl {
#if IS_REACHABLE(CONFIG_DVB_STV6110x)
-extern struct stv6110x_devctl *stv6110x_attach(struct dvb_frontend *fe,
+extern const struct stv6110x_devctl *stv6110x_attach(struct dvb_frontend *fe,
const struct stv6110x_config *config,
struct i2c_adapter *i2c);
#else
-static inline struct stv6110x_devctl *stv6110x_attach(struct dvb_frontend *fe,
+static inline const struct stv6110x_devctl *stv6110x_attach(struct dvb_frontend *fe,
const struct stv6110x_config *config,
struct i2c_adapter *i2c)
{