diff options
author | lawrence rust <lawrence@softsystem.co.uk> | 2010-08-25 08:50:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-20 23:04:52 -0400 |
commit | 2e4e98e788d8fbe30892bee3375067a4937155da (patch) | |
tree | 66d0ae3a74fa77f3e1cffa752dc61bd4089ce609 /drivers/media/dvb/frontends/mt352.c | |
parent | f71d76812e6cd3af8e293eeb8eb465c208e771cc (diff) |
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.c')
-rw-r--r-- | drivers/media/dvb/frontends/mt352.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/mt352.c b/drivers/media/dvb/frontends/mt352.c index beba5aa0db5..319672f8e1a 100644 --- a/drivers/media/dvb/frontends/mt352.c +++ b/drivers/media/dvb/frontends/mt352.c | |||
@@ -69,7 +69,7 @@ static int mt352_single_write(struct dvb_frontend *fe, u8 reg, u8 val) | |||
69 | return 0; | 69 | return 0; |
70 | } | 70 | } |
71 | 71 | ||
72 | static int _mt352_write(struct dvb_frontend* fe, u8* ibuf, int ilen) | 72 | static int _mt352_write(struct dvb_frontend* fe, const u8 ibuf[], int ilen) |
73 | { | 73 | { |
74 | int err,i; | 74 | int err,i; |
75 | for (i=0; i < ilen-1; i++) | 75 | for (i=0; i < ilen-1; i++) |