diff options
author | Jean Delvare <khali@linux-fr.org> | 2010-09-10 09:35:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-20 23:06:10 -0400 |
commit | bdc6fad34139fdd5182e05977b4e5dc7ac132675 (patch) | |
tree | 0a9a2d1524ac2734c5a87331dc174875a5f25fa5 | |
parent | 27f84acf0be090a4948596696e534b65f0bff980 (diff) |
V4L/DVB: cx22702: Some things never change
The init sequence never changes so it can be marked const. Likewise,
cx22702_ops is a template and can thus be made read-only.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/frontends/cx22702.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/cx22702.c b/drivers/media/dvb/frontends/cx22702.c index a5dcf876f81a..f9a7aaee1900 100644 --- a/drivers/media/dvb/frontends/cx22702.c +++ b/drivers/media/dvb/frontends/cx22702.c | |||
@@ -54,7 +54,7 @@ MODULE_PARM_DESC(debug, "Enable verbose debug messages"); | |||
54 | #define dprintk if (debug) printk | 54 | #define dprintk if (debug) printk |
55 | 55 | ||
56 | /* Register values to initialise the demod */ | 56 | /* Register values to initialise the demod */ |
57 | static u8 init_tab[] = { | 57 | static const u8 init_tab[] = { |
58 | 0x00, 0x00, /* Stop aquisition */ | 58 | 0x00, 0x00, /* Stop aquisition */ |
59 | 0x0B, 0x06, | 59 | 0x0B, 0x06, |
60 | 0x09, 0x01, | 60 | 0x09, 0x01, |
@@ -576,7 +576,7 @@ static void cx22702_release(struct dvb_frontend *fe) | |||
576 | kfree(state); | 576 | kfree(state); |
577 | } | 577 | } |
578 | 578 | ||
579 | static struct dvb_frontend_ops cx22702_ops; | 579 | static const struct dvb_frontend_ops cx22702_ops; |
580 | 580 | ||
581 | struct dvb_frontend *cx22702_attach(const struct cx22702_config *config, | 581 | struct dvb_frontend *cx22702_attach(const struct cx22702_config *config, |
582 | struct i2c_adapter *i2c) | 582 | struct i2c_adapter *i2c) |
@@ -608,7 +608,7 @@ error: | |||
608 | } | 608 | } |
609 | EXPORT_SYMBOL(cx22702_attach); | 609 | EXPORT_SYMBOL(cx22702_attach); |
610 | 610 | ||
611 | static struct dvb_frontend_ops cx22702_ops = { | 611 | static const struct dvb_frontend_ops cx22702_ops = { |
612 | 612 | ||
613 | .info = { | 613 | .info = { |
614 | .name = "Conexant CX22702 DVB-T", | 614 | .name = "Conexant CX22702 DVB-T", |