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/common/tuners/xc5000.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/common/tuners/xc5000.c')
-rw-r--r-- | drivers/media/common/tuners/xc5000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/xc5000.c b/drivers/media/common/tuners/xc5000.c index d2b2c12a556..76ac5cd84af 100644 --- a/drivers/media/common/tuners/xc5000.c +++ b/drivers/media/common/tuners/xc5000.c | |||
@@ -1042,7 +1042,7 @@ static const struct dvb_tuner_ops xc5000_tuner_ops = { | |||
1042 | 1042 | ||
1043 | struct dvb_frontend *xc5000_attach(struct dvb_frontend *fe, | 1043 | struct dvb_frontend *xc5000_attach(struct dvb_frontend *fe, |
1044 | struct i2c_adapter *i2c, | 1044 | struct i2c_adapter *i2c, |
1045 | struct xc5000_config *cfg) | 1045 | const struct xc5000_config *cfg) |
1046 | { | 1046 | { |
1047 | struct xc5000_priv *priv = NULL; | 1047 | struct xc5000_priv *priv = NULL; |
1048 | int instance; | 1048 | int instance; |