summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/mt352.h
diff options
context:
space:
mode:
authorlawrence rust <lawrence@softsystem.co.uk>2010-08-25 09:50:20 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-21 01:04:52 -0200
commit2e4e98e788d8fbe30892bee3375067a4937155da (patch)
tree66d0ae3a74fa77f3e1cffa752dc61bd4089ce609 /drivers/media/dvb/frontends/mt352.h
parentf71d76812e6cd3af8e293eeb8eb465c208e771cc (diff)
downloadop-kernel-dev-2e4e98e788d8fbe30892bee3375067a4937155da.zip
op-kernel-dev-2e4e98e788d8fbe30892bee3375067a4937155da.tar.gz
V4L/DVB: drivers/media: Make static data tables and strings const
Making static data const avoids allocation of additional r/w memory and reduces initialisation time. It also provides some additional opportunities for compiler optimisations. Signed-off-by: Lawrence Rust <lvr@softsystem.co.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/mt352.h')
-rw-r--r--drivers/media/dvb/frontends/mt352.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/mt352.h b/drivers/media/dvb/frontends/mt352.h
index 595092f..ca2562d 100644
--- a/drivers/media/dvb/frontends/mt352.h
+++ b/drivers/media/dvb/frontends/mt352.h
@@ -63,7 +63,7 @@ static inline struct dvb_frontend* mt352_attach(const struct mt352_config* confi
}
#endif // CONFIG_DVB_MT352
-static inline int mt352_write(struct dvb_frontend *fe, u8 *buf, int len) {
+static inline int mt352_write(struct dvb_frontend *fe, const u8 buf[], int len) {
int r = 0;
if (fe->ops.write)
r = fe->ops.write(fe, buf, len);
OpenPOWER on IntegriCloud