diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-05-01 11:59:29 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-01 11:59:29 -0400 |
commit | 408b664a7d394a5e4315fbd14aca49b042cb2b08 (patch) | |
tree | bd3ebe72229227962d157e46e61ed65b78d6e28b /drivers/media | |
parent | c31403a1f5a761599df38bcc2d6ba94f24320c33 (diff) |
[PATCH] make lots of things static
Another large rollup of various patches from Adrian which make things static
where they were needlessly exported.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/bttv-driver.c | 6 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-core.c | 5 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-dvb.c | 4 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-i2c.c | 4 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-vbi.c | 6 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-video.c | 12 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88.h | 4 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-dvb.c | 2 |
8 files changed, 19 insertions, 24 deletions
diff --git a/drivers/media/video/bttv-driver.c b/drivers/media/video/bttv-driver.c index c13f222fe6bd..033cc5498f23 100644 --- a/drivers/media/video/bttv-driver.c +++ b/drivers/media/video/bttv-driver.c | |||
@@ -3169,7 +3169,7 @@ static struct video_device radio_template = | |||
3169 | /* ----------------------------------------------------------------------- */ | 3169 | /* ----------------------------------------------------------------------- */ |
3170 | /* some debug code */ | 3170 | /* some debug code */ |
3171 | 3171 | ||
3172 | int bttv_risc_decode(u32 risc) | 3172 | static int bttv_risc_decode(u32 risc) |
3173 | { | 3173 | { |
3174 | static char *instr[16] = { | 3174 | static char *instr[16] = { |
3175 | [ BT848_RISC_WRITE >> 28 ] = "write", | 3175 | [ BT848_RISC_WRITE >> 28 ] = "write", |
@@ -3206,8 +3206,8 @@ int bttv_risc_decode(u32 risc) | |||
3206 | return incr[risc >> 28] ? incr[risc >> 28] : 1; | 3206 | return incr[risc >> 28] ? incr[risc >> 28] : 1; |
3207 | } | 3207 | } |
3208 | 3208 | ||
3209 | void bttv_risc_disasm(struct bttv *btv, | 3209 | static void bttv_risc_disasm(struct bttv *btv, |
3210 | struct btcx_riscmem *risc) | 3210 | struct btcx_riscmem *risc) |
3211 | { | 3211 | { |
3212 | unsigned int i,j,n; | 3212 | unsigned int i,j,n; |
3213 | 3213 | ||
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c index 26a6138015cb..1ff79b5a8835 100644 --- a/drivers/media/video/cx88/cx88-core.c +++ b/drivers/media/video/cx88/cx88-core.c | |||
@@ -429,7 +429,7 @@ int cx88_sram_channel_setup(struct cx88_core *core, | |||
429 | /* ------------------------------------------------------------------ */ | 429 | /* ------------------------------------------------------------------ */ |
430 | /* debug helper code */ | 430 | /* debug helper code */ |
431 | 431 | ||
432 | int cx88_risc_decode(u32 risc) | 432 | static int cx88_risc_decode(u32 risc) |
433 | { | 433 | { |
434 | static char *instr[16] = { | 434 | static char *instr[16] = { |
435 | [ RISC_SYNC >> 28 ] = "sync", | 435 | [ RISC_SYNC >> 28 ] = "sync", |
@@ -542,7 +542,7 @@ void cx88_sram_channel_dump(struct cx88_core *core, | |||
542 | core->name,cx_read(ch->cnt2_reg)); | 542 | core->name,cx_read(ch->cnt2_reg)); |
543 | } | 543 | } |
544 | 544 | ||
545 | char *cx88_pci_irqs[32] = { | 545 | static char *cx88_pci_irqs[32] = { |
546 | "vid", "aud", "ts", "vip", "hst", "5", "6", "tm1", | 546 | "vid", "aud", "ts", "vip", "hst", "5", "6", "tm1", |
547 | "src_dma", "dst_dma", "risc_rd_err", "risc_wr_err", | 547 | "src_dma", "dst_dma", "risc_rd_err", "risc_wr_err", |
548 | "brdg_err", "src_dma_err", "dst_dma_err", "ipb_dma_err", | 548 | "brdg_err", "src_dma_err", "dst_dma_err", "ipb_dma_err", |
@@ -1206,7 +1206,6 @@ void cx88_core_put(struct cx88_core *core, struct pci_dev *pci) | |||
1206 | /* ------------------------------------------------------------------ */ | 1206 | /* ------------------------------------------------------------------ */ |
1207 | 1207 | ||
1208 | EXPORT_SYMBOL(cx88_print_ioctl); | 1208 | EXPORT_SYMBOL(cx88_print_ioctl); |
1209 | EXPORT_SYMBOL(cx88_pci_irqs); | ||
1210 | EXPORT_SYMBOL(cx88_vid_irqs); | 1209 | EXPORT_SYMBOL(cx88_vid_irqs); |
1211 | EXPORT_SYMBOL(cx88_mpeg_irqs); | 1210 | EXPORT_SYMBOL(cx88_mpeg_irqs); |
1212 | EXPORT_SYMBOL(cx88_print_irqbits); | 1211 | EXPORT_SYMBOL(cx88_print_irqbits); |
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c index 1ca37315066e..9d15d3d5a2b7 100644 --- a/drivers/media/video/cx88/cx88-dvb.c +++ b/drivers/media/video/cx88/cx88-dvb.c | |||
@@ -91,7 +91,7 @@ static void dvb_buf_release(struct videobuf_queue *q, struct videobuf_buffer *vb | |||
91 | cx88_free_buffer(dev->pci, (struct cx88_buffer*)vb); | 91 | cx88_free_buffer(dev->pci, (struct cx88_buffer*)vb); |
92 | } | 92 | } |
93 | 93 | ||
94 | struct videobuf_queue_ops dvb_qops = { | 94 | static struct videobuf_queue_ops dvb_qops = { |
95 | .buf_setup = dvb_buf_setup, | 95 | .buf_setup = dvb_buf_setup, |
96 | .buf_prepare = dvb_buf_prepare, | 96 | .buf_prepare = dvb_buf_prepare, |
97 | .buf_queue = dvb_buf_queue, | 97 | .buf_queue = dvb_buf_queue, |
@@ -191,7 +191,7 @@ static int or51132_set_ts_param(struct dvb_frontend* fe, | |||
191 | return 0; | 191 | return 0; |
192 | } | 192 | } |
193 | 193 | ||
194 | struct or51132_config pchdtv_hd3000 = { | 194 | static struct or51132_config pchdtv_hd3000 = { |
195 | .demod_address = 0x15, | 195 | .demod_address = 0x15, |
196 | .pll_address = 0x61, | 196 | .pll_address = 0x61, |
197 | .pll_desc = &dvb_pll_thomson_dtt7610, | 197 | .pll_desc = &dvb_pll_thomson_dtt7610, |
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c index 60800172c026..0725b1288f4f 100644 --- a/drivers/media/video/cx88/cx88-i2c.c +++ b/drivers/media/video/cx88/cx88-i2c.c | |||
@@ -45,7 +45,7 @@ MODULE_PARM_DESC(i2c_scan,"scan i2c bus at insmod time"); | |||
45 | 45 | ||
46 | /* ----------------------------------------------------------------------- */ | 46 | /* ----------------------------------------------------------------------- */ |
47 | 47 | ||
48 | void cx8800_bit_setscl(void *data, int state) | 48 | static void cx8800_bit_setscl(void *data, int state) |
49 | { | 49 | { |
50 | struct cx88_core *core = data; | 50 | struct cx88_core *core = data; |
51 | 51 | ||
@@ -57,7 +57,7 @@ void cx8800_bit_setscl(void *data, int state) | |||
57 | cx_read(MO_I2C); | 57 | cx_read(MO_I2C); |
58 | } | 58 | } |
59 | 59 | ||
60 | void cx8800_bit_setsda(void *data, int state) | 60 | static void cx8800_bit_setsda(void *data, int state) |
61 | { | 61 | { |
62 | struct cx88_core *core = data; | 62 | struct cx88_core *core = data; |
63 | 63 | ||
diff --git a/drivers/media/video/cx88/cx88-vbi.c b/drivers/media/video/cx88/cx88-vbi.c index 471e508b0746..0584ff476387 100644 --- a/drivers/media/video/cx88/cx88-vbi.c +++ b/drivers/media/video/cx88/cx88-vbi.c | |||
@@ -46,9 +46,9 @@ void cx8800_vbi_fmt(struct cx8800_dev *dev, struct v4l2_format *f) | |||
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
49 | int cx8800_start_vbi_dma(struct cx8800_dev *dev, | 49 | static int cx8800_start_vbi_dma(struct cx8800_dev *dev, |
50 | struct cx88_dmaqueue *q, | 50 | struct cx88_dmaqueue *q, |
51 | struct cx88_buffer *buf) | 51 | struct cx88_buffer *buf) |
52 | { | 52 | { |
53 | struct cx88_core *core = dev->core; | 53 | struct cx88_core *core = dev->core; |
54 | 54 | ||
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c index 701f594e1816..d1f5c92f0ce5 100644 --- a/drivers/media/video/cx88/cx88-video.c +++ b/drivers/media/video/cx88/cx88-video.c | |||
@@ -325,7 +325,7 @@ static struct cx88_ctrl cx8800_ctls[] = { | |||
325 | .shift = 0, | 325 | .shift = 0, |
326 | } | 326 | } |
327 | }; | 327 | }; |
328 | const int CX8800_CTLS = ARRAY_SIZE(cx8800_ctls); | 328 | static const int CX8800_CTLS = ARRAY_SIZE(cx8800_ctls); |
329 | 329 | ||
330 | /* ------------------------------------------------------------------- */ | 330 | /* ------------------------------------------------------------------- */ |
331 | /* resource management */ | 331 | /* resource management */ |
@@ -665,7 +665,7 @@ static void buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb) | |||
665 | cx88_free_buffer(fh->dev->pci,buf); | 665 | cx88_free_buffer(fh->dev->pci,buf); |
666 | } | 666 | } |
667 | 667 | ||
668 | struct videobuf_queue_ops cx8800_video_qops = { | 668 | static struct videobuf_queue_ops cx8800_video_qops = { |
669 | .buf_setup = buffer_setup, | 669 | .buf_setup = buffer_setup, |
670 | .buf_prepare = buffer_prepare, | 670 | .buf_prepare = buffer_prepare, |
671 | .buf_queue = buffer_queue, | 671 | .buf_queue = buffer_queue, |
@@ -1924,7 +1924,7 @@ static struct file_operations video_fops = | |||
1924 | .llseek = no_llseek, | 1924 | .llseek = no_llseek, |
1925 | }; | 1925 | }; |
1926 | 1926 | ||
1927 | struct video_device cx8800_video_template = | 1927 | static struct video_device cx8800_video_template = |
1928 | { | 1928 | { |
1929 | .name = "cx8800-video", | 1929 | .name = "cx8800-video", |
1930 | .type = VID_TYPE_CAPTURE|VID_TYPE_TUNER|VID_TYPE_SCALES, | 1930 | .type = VID_TYPE_CAPTURE|VID_TYPE_TUNER|VID_TYPE_SCALES, |
@@ -1933,7 +1933,7 @@ struct video_device cx8800_video_template = | |||
1933 | .minor = -1, | 1933 | .minor = -1, |
1934 | }; | 1934 | }; |
1935 | 1935 | ||
1936 | struct video_device cx8800_vbi_template = | 1936 | static struct video_device cx8800_vbi_template = |
1937 | { | 1937 | { |
1938 | .name = "cx8800-vbi", | 1938 | .name = "cx8800-vbi", |
1939 | .type = VID_TYPE_TELETEXT|VID_TYPE_TUNER, | 1939 | .type = VID_TYPE_TELETEXT|VID_TYPE_TUNER, |
@@ -1951,7 +1951,7 @@ static struct file_operations radio_fops = | |||
1951 | .llseek = no_llseek, | 1951 | .llseek = no_llseek, |
1952 | }; | 1952 | }; |
1953 | 1953 | ||
1954 | struct video_device cx8800_radio_template = | 1954 | static struct video_device cx8800_radio_template = |
1955 | { | 1955 | { |
1956 | .name = "cx8800-radio", | 1956 | .name = "cx8800-radio", |
1957 | .type = VID_TYPE_TUNER, | 1957 | .type = VID_TYPE_TUNER, |
@@ -2226,7 +2226,7 @@ static int cx8800_resume(struct pci_dev *pci_dev) | |||
2226 | 2226 | ||
2227 | /* ----------------------------------------------------------- */ | 2227 | /* ----------------------------------------------------------- */ |
2228 | 2228 | ||
2229 | struct pci_device_id cx8800_pci_tbl[] = { | 2229 | static struct pci_device_id cx8800_pci_tbl[] = { |
2230 | { | 2230 | { |
2231 | .vendor = 0x14f1, | 2231 | .vendor = 0x14f1, |
2232 | .device = 0x8800, | 2232 | .device = 0x8800, |
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h index b351d9eae615..88eaaaba5ad8 100644 --- a/drivers/media/video/cx88/cx88.h +++ b/drivers/media/video/cx88/cx88.h | |||
@@ -420,7 +420,6 @@ struct cx8802_dev { | |||
420 | /* ----------------------------------------------------------- */ | 420 | /* ----------------------------------------------------------- */ |
421 | /* cx88-core.c */ | 421 | /* cx88-core.c */ |
422 | 422 | ||
423 | extern char *cx88_pci_irqs[32]; | ||
424 | extern char *cx88_vid_irqs[32]; | 423 | extern char *cx88_vid_irqs[32]; |
425 | extern char *cx88_mpeg_irqs[32]; | 424 | extern char *cx88_mpeg_irqs[32]; |
426 | extern void cx88_print_irqbits(char *name, char *tag, char **strings, | 425 | extern void cx88_print_irqbits(char *name, char *tag, char **strings, |
@@ -472,9 +471,6 @@ extern void cx88_core_put(struct cx88_core *core, | |||
472 | /* cx88-vbi.c */ | 471 | /* cx88-vbi.c */ |
473 | 472 | ||
474 | void cx8800_vbi_fmt(struct cx8800_dev *dev, struct v4l2_format *f); | 473 | void cx8800_vbi_fmt(struct cx8800_dev *dev, struct v4l2_format *f); |
475 | int cx8800_start_vbi_dma(struct cx8800_dev *dev, | ||
476 | struct cx88_dmaqueue *q, | ||
477 | struct cx88_buffer *buf); | ||
478 | int cx8800_stop_vbi_dma(struct cx8800_dev *dev); | 474 | int cx8800_stop_vbi_dma(struct cx8800_dev *dev); |
479 | int cx8800_restart_vbi_queue(struct cx8800_dev *dev, | 475 | int cx8800_restart_vbi_queue(struct cx8800_dev *dev, |
480 | struct cx88_dmaqueue *q); | 476 | struct cx88_dmaqueue *q); |
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c index dd4a6c8ee65f..c2873ae029f9 100644 --- a/drivers/media/video/saa7134/saa7134-dvb.c +++ b/drivers/media/video/saa7134/saa7134-dvb.c | |||
@@ -172,7 +172,7 @@ static int fe_request_firmware(struct dvb_frontend* fe, | |||
172 | return request_firmware(fw, name, &dev->pci->dev); | 172 | return request_firmware(fw, name, &dev->pci->dev); |
173 | } | 173 | } |
174 | 174 | ||
175 | struct tda1004x_config medion_cardbus = { | 175 | static struct tda1004x_config medion_cardbus = { |
176 | .demod_address = 0x08, /* not sure this is correct */ | 176 | .demod_address = 0x08, /* not sure this is correct */ |
177 | .invert = 0, | 177 | .invert = 0, |
178 | .invert_oclk = 0, | 178 | .invert_oclk = 0, |