diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-09-04 02:33:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:58 -0400 |
commit | d45b9b8ab43c8973a9630ac54f4ede6c3e009f9e (patch) | |
tree | d5937a21d2d7520cc937a93ce7caa8665a96303f /drivers/media | |
parent | 2bb87c24d7d5639bff65b41b1306542d6d2bf7d0 (diff) |
V4L/DVB (8906): v4l-dvb: fix assorted sparse warnings
Fix sparse warnings. None are serious, but cutting down on these helps find
future serious sparse warnings/errors.
Redid the av7710.c patch based on a suggestion by Oliver Endriss.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
39 files changed, 108 insertions, 111 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9005-remote.c b/drivers/media/dvb/dvb-usb/af9005-remote.c index ff00c0e8f4a1..7c596f926764 100644 --- a/drivers/media/dvb/dvb-usb/af9005-remote.c +++ b/drivers/media/dvb/dvb-usb/af9005-remote.c | |||
@@ -25,7 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | #include "af9005.h" | 26 | #include "af9005.h" |
27 | /* debug */ | 27 | /* debug */ |
28 | int dvb_usb_af9005_remote_debug; | 28 | static int dvb_usb_af9005_remote_debug; |
29 | module_param_named(debug, dvb_usb_af9005_remote_debug, int, 0644); | 29 | module_param_named(debug, dvb_usb_af9005_remote_debug, int, 0644); |
30 | MODULE_PARM_DESC(debug, | 30 | MODULE_PARM_DESC(debug, |
31 | "enable (1) or disable (0) debug messages." | 31 | "enable (1) or disable (0) debug messages." |
diff --git a/drivers/media/dvb/dvb-usb/af9005-script.h b/drivers/media/dvb/dvb-usb/af9005-script.h index 6eeaae51b1ca..4d69045426dd 100644 --- a/drivers/media/dvb/dvb-usb/af9005-script.h +++ b/drivers/media/dvb/dvb-usb/af9005-script.h | |||
@@ -14,7 +14,7 @@ typedef struct { | |||
14 | u8 val; | 14 | u8 val; |
15 | } RegDesc; | 15 | } RegDesc; |
16 | 16 | ||
17 | RegDesc script[] = { | 17 | static RegDesc script[] = { |
18 | {0xa180, 0x0, 0x8, 0xa}, | 18 | {0xa180, 0x0, 0x8, 0xa}, |
19 | {0xa181, 0x0, 0x8, 0xd7}, | 19 | {0xa181, 0x0, 0x8, 0xd7}, |
20 | {0xa182, 0x0, 0x8, 0xa3}, | 20 | {0xa182, 0x0, 0x8, 0xa3}, |
diff --git a/drivers/media/dvb/dvb-usb/af9005.c b/drivers/media/dvb/dvb-usb/af9005.c index cfe71feefcad..ca5a0a4d2a47 100644 --- a/drivers/media/dvb/dvb-usb/af9005.c +++ b/drivers/media/dvb/dvb-usb/af9005.c | |||
@@ -35,17 +35,17 @@ module_param_named(led, dvb_usb_af9005_led, bool, 0644); | |||
35 | MODULE_PARM_DESC(led, "enable led (default: 1)."); | 35 | MODULE_PARM_DESC(led, "enable led (default: 1)."); |
36 | 36 | ||
37 | /* eeprom dump */ | 37 | /* eeprom dump */ |
38 | int dvb_usb_af9005_dump_eeprom = 0; | 38 | static int dvb_usb_af9005_dump_eeprom; |
39 | module_param_named(dump_eeprom, dvb_usb_af9005_dump_eeprom, int, 0); | 39 | module_param_named(dump_eeprom, dvb_usb_af9005_dump_eeprom, int, 0); |
40 | MODULE_PARM_DESC(dump_eeprom, "dump contents of the eeprom."); | 40 | MODULE_PARM_DESC(dump_eeprom, "dump contents of the eeprom."); |
41 | 41 | ||
42 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 42 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
43 | 43 | ||
44 | /* remote control decoder */ | 44 | /* remote control decoder */ |
45 | int (*rc_decode) (struct dvb_usb_device * d, u8 * data, int len, u32 * event, | 45 | static int (*rc_decode) (struct dvb_usb_device *d, u8 *data, int len, |
46 | int *state); | 46 | u32 *event, int *state); |
47 | void *rc_keys; | 47 | static void *rc_keys; |
48 | int *rc_keys_size; | 48 | static int *rc_keys_size; |
49 | 49 | ||
50 | u8 regmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff }; | 50 | u8 regmask[8] = { 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff }; |
51 | 51 | ||
@@ -54,8 +54,8 @@ struct af9005_device_state { | |||
54 | int led_state; | 54 | int led_state; |
55 | }; | 55 | }; |
56 | 56 | ||
57 | int af9005_usb_generic_rw(struct dvb_usb_device *d, u8 * wbuf, u16 wlen, | 57 | static int af9005_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, |
58 | u8 * rbuf, u16 rlen, int delay_ms) | 58 | u8 *rbuf, u16 rlen, int delay_ms) |
59 | { | 59 | { |
60 | int actlen, ret = -ENOMEM; | 60 | int actlen, ret = -ENOMEM; |
61 | 61 | ||
@@ -98,12 +98,7 @@ int af9005_usb_generic_rw(struct dvb_usb_device *d, u8 * wbuf, u16 wlen, | |||
98 | return ret; | 98 | return ret; |
99 | } | 99 | } |
100 | 100 | ||
101 | int af9005_usb_generic_write(struct dvb_usb_device *d, u8 * buf, u16 len) | 101 | static int af9005_generic_read_write(struct dvb_usb_device *d, u16 reg, |
102 | { | ||
103 | return af9005_usb_generic_rw(d, buf, len, NULL, 0, 0); | ||
104 | } | ||
105 | |||
106 | int af9005_generic_read_write(struct dvb_usb_device *d, u16 reg, | ||
107 | int readwrite, int type, u8 * values, int len) | 102 | int readwrite, int type, u8 * values, int len) |
108 | { | 103 | { |
109 | struct af9005_device_state *st = d->priv; | 104 | struct af9005_device_state *st = d->priv; |
@@ -765,7 +760,7 @@ static int af9005_boot_packet(struct usb_device *udev, int type, u8 * reply) | |||
765 | return 0; | 760 | return 0; |
766 | } | 761 | } |
767 | 762 | ||
768 | int af9005_download_firmware(struct usb_device *udev, const struct firmware *fw) | 763 | static int af9005_download_firmware(struct usb_device *udev, const struct firmware *fw) |
769 | { | 764 | { |
770 | int i, packets, ret, act_len; | 765 | int i, packets, ret, act_len; |
771 | 766 | ||
diff --git a/drivers/media/dvb/frontends/cx24110.h b/drivers/media/dvb/frontends/cx24110.h index 1792adb23c4d..fdcceee91f3a 100644 --- a/drivers/media/dvb/frontends/cx24110.h +++ b/drivers/media/dvb/frontends/cx24110.h | |||
@@ -33,12 +33,17 @@ struct cx24110_config | |||
33 | u8 demod_address; | 33 | u8 demod_address; |
34 | }; | 34 | }; |
35 | 35 | ||
36 | static inline int cx24110_pll_write(struct dvb_frontend *fe, u32 val) { | 36 | static inline int cx24110_pll_write(struct dvb_frontend *fe, u32 val) |
37 | int r = 0; | 37 | { |
38 | u8 buf[] = {(u8) (val>>24), (u8) (val>>16), (u8) (val>>8)}; | 38 | u8 buf[] = { |
39 | (u8)((val >> 24) & 0xff), | ||
40 | (u8)((val >> 16) & 0xff), | ||
41 | (u8)((val >> 8) & 0xff) | ||
42 | }; | ||
43 | |||
39 | if (fe->ops.write) | 44 | if (fe->ops.write) |
40 | r = fe->ops.write(fe, buf, 3); | 45 | return fe->ops.write(fe, buf, 3); |
41 | return r; | 46 | return 0; |
42 | } | 47 | } |
43 | 48 | ||
44 | #if defined(CONFIG_DVB_CX24110) || (defined(CONFIG_DVB_CX24110_MODULE) && defined(MODULE)) | 49 | #if defined(CONFIG_DVB_CX24110) || (defined(CONFIG_DVB_CX24110_MODULE) && defined(MODULE)) |
diff --git a/drivers/media/dvb/frontends/dib7000m.c b/drivers/media/dvb/frontends/dib7000m.c index 5f1375e30dfc..4de0fa9b69ad 100644 --- a/drivers/media/dvb/frontends/dib7000m.c +++ b/drivers/media/dvb/frontends/dib7000m.c | |||
@@ -1284,7 +1284,8 @@ struct i2c_adapter * dib7000m_get_i2c_master(struct dvb_frontend *demod, enum di | |||
1284 | } | 1284 | } |
1285 | EXPORT_SYMBOL(dib7000m_get_i2c_master); | 1285 | EXPORT_SYMBOL(dib7000m_get_i2c_master); |
1286 | 1286 | ||
1287 | int dib7000m_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, u8 default_addr, struct dib7000m_config cfg[]) | 1287 | static int dib7000m_i2c_enumeration(struct i2c_adapter *i2c, int no_of_demods, |
1288 | u8 default_addr, struct dib7000m_config cfg[]) | ||
1288 | { | 1289 | { |
1289 | struct dib7000m_state st = { .i2c_adap = i2c }; | 1290 | struct dib7000m_state st = { .i2c_adap = i2c }; |
1290 | int k = 0; | 1291 | int k = 0; |
diff --git a/drivers/media/dvb/frontends/dvb_dummy_fe.c b/drivers/media/dvb/frontends/dvb_dummy_fe.c index cb4d8a3b9d8b..db8a937cc630 100644 --- a/drivers/media/dvb/frontends/dvb_dummy_fe.c +++ b/drivers/media/dvb/frontends/dvb_dummy_fe.c | |||
@@ -132,7 +132,7 @@ error: | |||
132 | 132 | ||
133 | static struct dvb_frontend_ops dvb_dummy_fe_qpsk_ops; | 133 | static struct dvb_frontend_ops dvb_dummy_fe_qpsk_ops; |
134 | 134 | ||
135 | struct dvb_frontend* dvb_dummy_fe_qpsk_attach() | 135 | struct dvb_frontend *dvb_dummy_fe_qpsk_attach(void) |
136 | { | 136 | { |
137 | struct dvb_dummy_fe_state* state = NULL; | 137 | struct dvb_dummy_fe_state* state = NULL; |
138 | 138 | ||
@@ -152,7 +152,7 @@ error: | |||
152 | 152 | ||
153 | static struct dvb_frontend_ops dvb_dummy_fe_qam_ops; | 153 | static struct dvb_frontend_ops dvb_dummy_fe_qam_ops; |
154 | 154 | ||
155 | struct dvb_frontend* dvb_dummy_fe_qam_attach() | 155 | struct dvb_frontend *dvb_dummy_fe_qam_attach(void) |
156 | { | 156 | { |
157 | struct dvb_dummy_fe_state* state = NULL; | 157 | struct dvb_dummy_fe_state* state = NULL; |
158 | 158 | ||
diff --git a/drivers/media/dvb/frontends/sp887x.c b/drivers/media/dvb/frontends/sp887x.c index 4543609e1816..559509ab4dab 100644 --- a/drivers/media/dvb/frontends/sp887x.c +++ b/drivers/media/dvb/frontends/sp887x.c | |||
@@ -337,7 +337,8 @@ static int sp887x_setup_frontend_parameters (struct dvb_frontend* fe, | |||
337 | struct dvb_frontend_parameters *p) | 337 | struct dvb_frontend_parameters *p) |
338 | { | 338 | { |
339 | struct sp887x_state* state = fe->demodulator_priv; | 339 | struct sp887x_state* state = fe->demodulator_priv; |
340 | int actual_freq, err; | 340 | unsigned actual_freq; |
341 | int err; | ||
341 | u16 val, reg0xc05; | 342 | u16 val, reg0xc05; |
342 | 343 | ||
343 | if (p->u.ofdm.bandwidth != BANDWIDTH_8_MHZ && | 344 | if (p->u.ofdm.bandwidth != BANDWIDTH_8_MHZ && |
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c index 404108f09d77..c7c770c28988 100644 --- a/drivers/media/dvb/ttpci/av7110.c +++ b/drivers/media/dvb/ttpci/av7110.c | |||
@@ -381,9 +381,9 @@ static inline void start_debi_dma(struct av7110 *av7110, int dir, | |||
381 | irdebi(av7110, DEBISWAB, addr, 0, len); | 381 | irdebi(av7110, DEBISWAB, addr, 0, len); |
382 | } | 382 | } |
383 | 383 | ||
384 | static void debiirq(unsigned long data) | 384 | static void debiirq(unsigned long cookie) |
385 | { | 385 | { |
386 | struct av7110 *av7110 = (struct av7110 *) data; | 386 | struct av7110 *av7110 = (struct av7110 *)cookie; |
387 | int type = av7110->debitype; | 387 | int type = av7110->debitype; |
388 | int handle = (type >> 8) & 0x1f; | 388 | int handle = (type >> 8) & 0x1f; |
389 | unsigned int xfer = 0; | 389 | unsigned int xfer = 0; |
@@ -492,9 +492,9 @@ debi_done: | |||
492 | } | 492 | } |
493 | 493 | ||
494 | /* irq from av7110 firmware writing the mailbox register in the DPRAM */ | 494 | /* irq from av7110 firmware writing the mailbox register in the DPRAM */ |
495 | static void gpioirq(unsigned long data) | 495 | static void gpioirq(unsigned long cookie) |
496 | { | 496 | { |
497 | struct av7110 *av7110 = (struct av7110 *) data; | 497 | struct av7110 *av7110 = (struct av7110 *)cookie; |
498 | u32 rxbuf, txbuf; | 498 | u32 rxbuf, txbuf; |
499 | int len; | 499 | int len; |
500 | 500 | ||
@@ -1260,9 +1260,9 @@ static int budget_stop_feed(struct dvb_demux_feed *feed) | |||
1260 | return status; | 1260 | return status; |
1261 | } | 1261 | } |
1262 | 1262 | ||
1263 | static void vpeirq(unsigned long data) | 1263 | static void vpeirq(unsigned long cookie) |
1264 | { | 1264 | { |
1265 | struct av7110 *budget = (struct av7110 *) data; | 1265 | struct av7110 *budget = (struct av7110 *)cookie; |
1266 | u8 *mem = (u8 *) (budget->grabbing); | 1266 | u8 *mem = (u8 *) (budget->grabbing); |
1267 | u32 olddma = budget->ttbp; | 1267 | u32 olddma = budget->ttbp; |
1268 | u32 newdma = saa7146_read(budget->dev, PCI_VDP3); | 1268 | u32 newdma = saa7146_read(budget->dev, PCI_VDP3); |
diff --git a/drivers/media/video/cpia2/cpia2_core.c b/drivers/media/video/cpia2/cpia2_core.c index af8b9ec8e358..7e791b6923f9 100644 --- a/drivers/media/video/cpia2/cpia2_core.c +++ b/drivers/media/video/cpia2/cpia2_core.c | |||
@@ -1537,7 +1537,7 @@ static int config_sensor_500(struct camera_data *cam, | |||
1537 | * | 1537 | * |
1538 | * This sets all user changeable properties to the values in cam->params. | 1538 | * This sets all user changeable properties to the values in cam->params. |
1539 | *****************************************************************************/ | 1539 | *****************************************************************************/ |
1540 | int set_all_properties(struct camera_data *cam) | 1540 | static int set_all_properties(struct camera_data *cam) |
1541 | { | 1541 | { |
1542 | /** | 1542 | /** |
1543 | * Don't set target_kb here, it will be set later. | 1543 | * Don't set target_kb here, it will be set later. |
@@ -1588,7 +1588,7 @@ void cpia2_save_camera_state(struct camera_data *cam) | |||
1588 | * get_color_params | 1588 | * get_color_params |
1589 | * | 1589 | * |
1590 | *****************************************************************************/ | 1590 | *****************************************************************************/ |
1591 | void get_color_params(struct camera_data *cam) | 1591 | static void get_color_params(struct camera_data *cam) |
1592 | { | 1592 | { |
1593 | cpia2_do_command(cam, CPIA2_CMD_GET_VP_BRIGHTNESS, TRANSFER_READ, 0); | 1593 | cpia2_do_command(cam, CPIA2_CMD_GET_VP_BRIGHTNESS, TRANSFER_READ, 0); |
1594 | cpia2_do_command(cam, CPIA2_CMD_GET_VP_SATURATION, TRANSFER_READ, 0); | 1594 | cpia2_do_command(cam, CPIA2_CMD_GET_VP_SATURATION, TRANSFER_READ, 0); |
@@ -1881,7 +1881,7 @@ void cpia2_set_saturation(struct camera_data *cam, unsigned char value) | |||
1881 | * wake_system | 1881 | * wake_system |
1882 | * | 1882 | * |
1883 | *****************************************************************************/ | 1883 | *****************************************************************************/ |
1884 | void wake_system(struct camera_data *cam) | 1884 | static void wake_system(struct camera_data *cam) |
1885 | { | 1885 | { |
1886 | cpia2_do_command(cam, CPIA2_CMD_SET_WAKEUP, TRANSFER_WRITE, 0); | 1886 | cpia2_do_command(cam, CPIA2_CMD_SET_WAKEUP, TRANSFER_WRITE, 0); |
1887 | } | 1887 | } |
@@ -1892,7 +1892,7 @@ void wake_system(struct camera_data *cam) | |||
1892 | * | 1892 | * |
1893 | * Valid for STV500 sensor only | 1893 | * Valid for STV500 sensor only |
1894 | *****************************************************************************/ | 1894 | *****************************************************************************/ |
1895 | void set_lowlight_boost(struct camera_data *cam) | 1895 | static void set_lowlight_boost(struct camera_data *cam) |
1896 | { | 1896 | { |
1897 | struct cpia2_command cmd; | 1897 | struct cpia2_command cmd; |
1898 | 1898 | ||
@@ -2169,7 +2169,7 @@ void cpia2_dbg_dump_registers(struct camera_data *cam) | |||
2169 | * | 2169 | * |
2170 | * Sets all values to the defaults | 2170 | * Sets all values to the defaults |
2171 | *****************************************************************************/ | 2171 | *****************************************************************************/ |
2172 | void reset_camera_struct(struct camera_data *cam) | 2172 | static void reset_camera_struct(struct camera_data *cam) |
2173 | { | 2173 | { |
2174 | /*** | 2174 | /*** |
2175 | * The following parameter values are the defaults from the register map. | 2175 | * The following parameter values are the defaults from the register map. |
diff --git a/drivers/media/video/cpia2/cpia2_usb.c b/drivers/media/video/cpia2/cpia2_usb.c index a8a199047cbd..73511a542077 100644 --- a/drivers/media/video/cpia2/cpia2_usb.c +++ b/drivers/media/video/cpia2/cpia2_usb.c | |||
@@ -478,7 +478,7 @@ int cpia2_usb_change_streaming_alternate(struct camera_data *cam, | |||
478 | * set_alternate | 478 | * set_alternate |
479 | * | 479 | * |
480 | *****************************************************************************/ | 480 | *****************************************************************************/ |
481 | int set_alternate(struct camera_data *cam, unsigned int alt) | 481 | static int set_alternate(struct camera_data *cam, unsigned int alt) |
482 | { | 482 | { |
483 | int ret = 0; | 483 | int ret = 0; |
484 | 484 | ||
diff --git a/drivers/media/video/cx23885/cx23885-417.c b/drivers/media/video/cx23885/cx23885-417.c index 93777d06d0ac..e54df8195ec4 100644 --- a/drivers/media/video/cx23885/cx23885-417.c +++ b/drivers/media/video/cx23885/cx23885-417.c | |||
@@ -632,7 +632,7 @@ int mc417_memory_read(struct cx23885_dev *dev, u32 address, u32 *value) | |||
632 | /* ------------------------------------------------------------------ */ | 632 | /* ------------------------------------------------------------------ */ |
633 | 633 | ||
634 | /* MPEG encoder API */ | 634 | /* MPEG encoder API */ |
635 | char *cmd_to_str(int cmd) | 635 | static char *cmd_to_str(int cmd) |
636 | { | 636 | { |
637 | switch (cmd) { | 637 | switch (cmd) { |
638 | case CX2341X_ENC_PING_FW: | 638 | case CX2341X_ENC_PING_FW: |
diff --git a/drivers/media/video/cx23885/cx23885-vbi.c b/drivers/media/video/cx23885/cx23885-vbi.c index 35e61cd112fc..5b297f0323b6 100644 --- a/drivers/media/video/cx23885/cx23885-vbi.c +++ b/drivers/media/video/cx23885/cx23885-vbi.c | |||
@@ -85,18 +85,8 @@ static int cx23885_start_vbi_dma(struct cx23885_dev *dev, | |||
85 | return 0; | 85 | return 0; |
86 | } | 86 | } |
87 | 87 | ||
88 | int cx23885_stop_vbi_dma(struct cx23885_dev *dev) | ||
89 | { | ||
90 | /* stop dma */ | ||
91 | cx_clear(VID_A_DMA_CTL, 0x00000022); | ||
92 | |||
93 | /* disable irqs */ | ||
94 | cx_clear(PCI_INT_MSK, 0x000001); | ||
95 | cx_clear(VID_A_INT_MSK, 0x00000022); | ||
96 | return 0; | ||
97 | } | ||
98 | 88 | ||
99 | int cx23885_restart_vbi_queue(struct cx23885_dev *dev, | 89 | static int cx23885_restart_vbi_queue(struct cx23885_dev *dev, |
100 | struct cx23885_dmaqueue *q) | 90 | struct cx23885_dmaqueue *q) |
101 | { | 91 | { |
102 | struct cx23885_buffer *buf; | 92 | struct cx23885_buffer *buf; |
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c index d9bef1a54d1f..f75ed1c9b71a 100644 --- a/drivers/media/video/cx23885/cx23885-video.c +++ b/drivers/media/video/cx23885/cx23885-video.c | |||
@@ -244,7 +244,7 @@ static struct cx23885_ctrl cx23885_ctls[] = { | |||
244 | }; | 244 | }; |
245 | static const int CX23885_CTLS = ARRAY_SIZE(cx23885_ctls); | 245 | static const int CX23885_CTLS = ARRAY_SIZE(cx23885_ctls); |
246 | 246 | ||
247 | const u32 cx23885_user_ctrls[] = { | 247 | static const u32 cx23885_user_ctrls[] = { |
248 | V4L2_CID_USER_CLASS, | 248 | V4L2_CID_USER_CLASS, |
249 | V4L2_CID_BRIGHTNESS, | 249 | V4L2_CID_BRIGHTNESS, |
250 | V4L2_CID_CONTRAST, | 250 | V4L2_CID_CONTRAST, |
@@ -254,14 +254,13 @@ const u32 cx23885_user_ctrls[] = { | |||
254 | V4L2_CID_AUDIO_MUTE, | 254 | V4L2_CID_AUDIO_MUTE, |
255 | 0 | 255 | 0 |
256 | }; | 256 | }; |
257 | EXPORT_SYMBOL(cx23885_user_ctrls); | ||
258 | 257 | ||
259 | static const u32 *ctrl_classes[] = { | 258 | static const u32 *ctrl_classes[] = { |
260 | cx23885_user_ctrls, | 259 | cx23885_user_ctrls, |
261 | NULL | 260 | NULL |
262 | }; | 261 | }; |
263 | 262 | ||
264 | void cx23885_video_wakeup(struct cx23885_dev *dev, | 263 | static void cx23885_video_wakeup(struct cx23885_dev *dev, |
265 | struct cx23885_dmaqueue *q, u32 count) | 264 | struct cx23885_dmaqueue *q, u32 count) |
266 | { | 265 | { |
267 | struct cx23885_buffer *buf; | 266 | struct cx23885_buffer *buf; |
@@ -296,7 +295,7 @@ void cx23885_video_wakeup(struct cx23885_dev *dev, | |||
296 | __func__, bc); | 295 | __func__, bc); |
297 | } | 296 | } |
298 | 297 | ||
299 | int cx23885_set_tvnorm(struct cx23885_dev *dev, v4l2_std_id norm) | 298 | static int cx23885_set_tvnorm(struct cx23885_dev *dev, v4l2_std_id norm) |
300 | { | 299 | { |
301 | dprintk(1, "%s(norm = 0x%08x) name: [%s]\n", | 300 | dprintk(1, "%s(norm = 0x%08x) name: [%s]\n", |
302 | __func__, | 301 | __func__, |
@@ -314,7 +313,7 @@ int cx23885_set_tvnorm(struct cx23885_dev *dev, v4l2_std_id norm) | |||
314 | return 0; | 313 | return 0; |
315 | } | 314 | } |
316 | 315 | ||
317 | struct video_device *cx23885_vdev_init(struct cx23885_dev *dev, | 316 | static struct video_device *cx23885_vdev_init(struct cx23885_dev *dev, |
318 | struct pci_dev *pci, | 317 | struct pci_dev *pci, |
319 | struct video_device *template, | 318 | struct video_device *template, |
320 | char *type) | 319 | char *type) |
@@ -334,7 +333,7 @@ struct video_device *cx23885_vdev_init(struct cx23885_dev *dev, | |||
334 | return vfd; | 333 | return vfd; |
335 | } | 334 | } |
336 | 335 | ||
337 | int cx23885_ctrl_query(struct v4l2_queryctrl *qctrl) | 336 | static int cx23885_ctrl_query(struct v4l2_queryctrl *qctrl) |
338 | { | 337 | { |
339 | int i; | 338 | int i; |
340 | 339 | ||
@@ -351,7 +350,6 @@ int cx23885_ctrl_query(struct v4l2_queryctrl *qctrl) | |||
351 | *qctrl = cx23885_ctls[i].v; | 350 | *qctrl = cx23885_ctls[i].v; |
352 | return 0; | 351 | return 0; |
353 | } | 352 | } |
354 | EXPORT_SYMBOL(cx23885_ctrl_query); | ||
355 | 353 | ||
356 | /* ------------------------------------------------------------------- */ | 354 | /* ------------------------------------------------------------------- */ |
357 | /* resource management */ | 355 | /* resource management */ |
@@ -402,7 +400,7 @@ static void res_free(struct cx23885_dev *dev, struct cx23885_fh *fh, | |||
402 | mutex_unlock(&dev->lock); | 400 | mutex_unlock(&dev->lock); |
403 | } | 401 | } |
404 | 402 | ||
405 | int cx23885_video_mux(struct cx23885_dev *dev, unsigned int input) | 403 | static int cx23885_video_mux(struct cx23885_dev *dev, unsigned int input) |
406 | { | 404 | { |
407 | struct v4l2_routing route; | 405 | struct v4l2_routing route; |
408 | memset(&route, 0, sizeof(route)); | 406 | memset(&route, 0, sizeof(route)); |
@@ -422,10 +420,9 @@ int cx23885_video_mux(struct cx23885_dev *dev, unsigned int input) | |||
422 | 420 | ||
423 | return 0; | 421 | return 0; |
424 | } | 422 | } |
425 | EXPORT_SYMBOL(cx23885_video_mux); | ||
426 | 423 | ||
427 | /* ------------------------------------------------------------------ */ | 424 | /* ------------------------------------------------------------------ */ |
428 | int cx23885_set_scale(struct cx23885_dev *dev, unsigned int width, | 425 | static int cx23885_set_scale(struct cx23885_dev *dev, unsigned int width, |
429 | unsigned int height, enum v4l2_field field) | 426 | unsigned int height, enum v4l2_field field) |
430 | { | 427 | { |
431 | dprintk(1, "%s()\n", __func__); | 428 | dprintk(1, "%s()\n", __func__); |
@@ -890,21 +887,19 @@ static int video_mmap(struct file *file, struct vm_area_struct *vma) | |||
890 | /* ------------------------------------------------------------------ */ | 887 | /* ------------------------------------------------------------------ */ |
891 | /* VIDEO CTRL IOCTLS */ | 888 | /* VIDEO CTRL IOCTLS */ |
892 | 889 | ||
893 | int cx23885_get_control(struct cx23885_dev *dev, struct v4l2_control *ctl) | 890 | static int cx23885_get_control(struct cx23885_dev *dev, struct v4l2_control *ctl) |
894 | { | 891 | { |
895 | dprintk(1, "%s() calling cx25840(VIDIOC_G_CTRL)\n", __func__); | 892 | dprintk(1, "%s() calling cx25840(VIDIOC_G_CTRL)\n", __func__); |
896 | cx23885_call_i2c_clients(&dev->i2c_bus[2], VIDIOC_G_CTRL, ctl); | 893 | cx23885_call_i2c_clients(&dev->i2c_bus[2], VIDIOC_G_CTRL, ctl); |
897 | return 0; | 894 | return 0; |
898 | } | 895 | } |
899 | EXPORT_SYMBOL(cx23885_get_control); | ||
900 | 896 | ||
901 | int cx23885_set_control(struct cx23885_dev *dev, struct v4l2_control *ctl) | 897 | static int cx23885_set_control(struct cx23885_dev *dev, struct v4l2_control *ctl) |
902 | { | 898 | { |
903 | dprintk(1, "%s() calling cx25840(VIDIOC_S_CTRL)" | 899 | dprintk(1, "%s() calling cx25840(VIDIOC_S_CTRL)" |
904 | " (disabled - no action)\n", __func__); | 900 | " (disabled - no action)\n", __func__); |
905 | return 0; | 901 | return 0; |
906 | } | 902 | } |
907 | EXPORT_SYMBOL(cx23885_set_control); | ||
908 | 903 | ||
909 | static void init_controls(struct cx23885_dev *dev) | 904 | static void init_controls(struct cx23885_dev *dev) |
910 | { | 905 | { |
@@ -1152,7 +1147,7 @@ static int vidioc_s_std(struct file *file, void *priv, v4l2_std_id *tvnorms) | |||
1152 | return 0; | 1147 | return 0; |
1153 | } | 1148 | } |
1154 | 1149 | ||
1155 | int cx23885_enum_input(struct cx23885_dev *dev, struct v4l2_input *i) | 1150 | static int cx23885_enum_input(struct cx23885_dev *dev, struct v4l2_input *i) |
1156 | { | 1151 | { |
1157 | static const char *iname[] = { | 1152 | static const char *iname[] = { |
1158 | [CX23885_VMUX_COMPOSITE1] = "Composite1", | 1153 | [CX23885_VMUX_COMPOSITE1] = "Composite1", |
@@ -1185,7 +1180,6 @@ int cx23885_enum_input(struct cx23885_dev *dev, struct v4l2_input *i) | |||
1185 | i->std = CX23885_NORMS; | 1180 | i->std = CX23885_NORMS; |
1186 | return 0; | 1181 | return 0; |
1187 | } | 1182 | } |
1188 | EXPORT_SYMBOL(cx23885_enum_input); | ||
1189 | 1183 | ||
1190 | static int vidioc_enum_input(struct file *file, void *priv, | 1184 | static int vidioc_enum_input(struct file *file, void *priv, |
1191 | struct v4l2_input *i) | 1185 | struct v4l2_input *i) |
@@ -1294,7 +1288,7 @@ static int vidioc_g_frequency(struct file *file, void *priv, | |||
1294 | return 0; | 1288 | return 0; |
1295 | } | 1289 | } |
1296 | 1290 | ||
1297 | int cx23885_set_freq(struct cx23885_dev *dev, struct v4l2_frequency *f) | 1291 | static int cx23885_set_freq(struct cx23885_dev *dev, struct v4l2_frequency *f) |
1298 | { | 1292 | { |
1299 | if (unlikely(UNSET == dev->tuner_type)) | 1293 | if (unlikely(UNSET == dev->tuner_type)) |
1300 | return -EINVAL; | 1294 | return -EINVAL; |
@@ -1313,7 +1307,6 @@ int cx23885_set_freq(struct cx23885_dev *dev, struct v4l2_frequency *f) | |||
1313 | 1307 | ||
1314 | return 0; | 1308 | return 0; |
1315 | } | 1309 | } |
1316 | EXPORT_SYMBOL(cx23885_set_freq); | ||
1317 | 1310 | ||
1318 | static int vidioc_s_frequency(struct file *file, void *priv, | 1311 | static int vidioc_s_frequency(struct file *file, void *priv, |
1319 | struct v4l2_frequency *f) | 1312 | struct v4l2_frequency *f) |
diff --git a/drivers/media/video/em28xx/em28xx-dvb.c b/drivers/media/video/em28xx/em28xx-dvb.c index d2b1a1a52689..ea4f2a97bd2d 100644 --- a/drivers/media/video/em28xx/em28xx-dvb.c +++ b/drivers/media/video/em28xx/em28xx-dvb.c | |||
@@ -274,7 +274,7 @@ static int attach_xc3028(u8 addr, struct em28xx *dev) | |||
274 | 274 | ||
275 | /* ------------------------------------------------------------------ */ | 275 | /* ------------------------------------------------------------------ */ |
276 | 276 | ||
277 | int register_dvb(struct em28xx_dvb *dvb, | 277 | static int register_dvb(struct em28xx_dvb *dvb, |
278 | struct module *module, | 278 | struct module *module, |
279 | struct em28xx *dev, | 279 | struct em28xx *dev, |
280 | struct device *device) | 280 | struct device *device) |
diff --git a/drivers/media/video/em28xx/em28xx-i2c.c b/drivers/media/video/em28xx/em28xx-i2c.c index 97853384c943..2989a65f6917 100644 --- a/drivers/media/video/em28xx/em28xx-i2c.c +++ b/drivers/media/video/em28xx/em28xx-i2c.c | |||
@@ -143,10 +143,11 @@ static int em2800_i2c_check_for_device(struct em28xx *dev, unsigned char addr) | |||
143 | } | 143 | } |
144 | for (write_timeout = EM2800_I2C_WRITE_TIMEOUT; write_timeout > 0; | 144 | for (write_timeout = EM2800_I2C_WRITE_TIMEOUT; write_timeout > 0; |
145 | write_timeout -= 5) { | 145 | write_timeout -= 5) { |
146 | unsigned msg = dev->em28xx_read_reg(dev, 0x5); | 146 | unsigned reg = dev->em28xx_read_reg(dev, 0x5); |
147 | if (msg == 0x94) | 147 | |
148 | if (reg == 0x94) | ||
148 | return -ENODEV; | 149 | return -ENODEV; |
149 | else if (msg == 0x84) | 150 | else if (reg == 0x84) |
150 | return 0; | 151 | return 0; |
151 | msleep(5); | 152 | msleep(5); |
152 | } | 153 | } |
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index 9a3310748685..d992280613b2 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -411,8 +411,8 @@ struct em28xx { | |||
411 | /* frame properties */ | 411 | /* frame properties */ |
412 | int width; /* current frame width */ | 412 | int width; /* current frame width */ |
413 | int height; /* current frame height */ | 413 | int height; /* current frame height */ |
414 | int hscale; /* horizontal scale factor (see datasheet) */ | 414 | unsigned hscale; /* horizontal scale factor (see datasheet) */ |
415 | int vscale; /* vertical scale factor (see datasheet) */ | 415 | unsigned vscale; /* vertical scale factor (see datasheet) */ |
416 | int interlaced; /* 1=interlace fileds, 0=just top fileds */ | 416 | int interlaced; /* 1=interlace fileds, 0=just top fileds */ |
417 | unsigned int video_bytesread; /* Number of bytes read */ | 417 | unsigned int video_bytesread; /* Number of bytes read */ |
418 | 418 | ||
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c index 12b81ae526b7..4328ad44c40a 100644 --- a/drivers/media/video/gspca/sonixb.c +++ b/drivers/media/video/gspca/sonixb.c | |||
@@ -490,7 +490,7 @@ static const __u8 tas5130_sensor_init[][8] = { | |||
490 | {0x30, 0x11, 0x02, 0x20, 0x70, 0x00, 0x00, 0x10}, | 490 | {0x30, 0x11, 0x02, 0x20, 0x70, 0x00, 0x00, 0x10}, |
491 | }; | 491 | }; |
492 | 492 | ||
493 | struct sensor_data sensor_data[] = { | 493 | static struct sensor_data sensor_data[] = { |
494 | SENS(initHv7131, NULL, hv7131_sensor_init, NULL, NULL, 0, NO_EXPO|NO_FREQ, 0), | 494 | SENS(initHv7131, NULL, hv7131_sensor_init, NULL, NULL, 0, NO_EXPO|NO_FREQ, 0), |
495 | SENS(initOv6650, NULL, ov6650_sensor_init, NULL, NULL, F_GAIN|F_SIF, 0, 0x60), | 495 | SENS(initOv6650, NULL, ov6650_sensor_init, NULL, NULL, F_GAIN|F_SIF, 0, 0x60), |
496 | SENS(initOv7630, initOv7630_3, ov7630_sensor_init, NULL, ov7630_sensor_init_3, | 496 | SENS(initOv7630, initOv7630_3, ov7630_sensor_init, NULL, ov7630_sensor_init_3, |
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index bd4c226c9a07..0c68f433bb9b 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -80,7 +80,6 @@ static struct ctrl sd_ctrls[] = { | |||
80 | .step = 1, | 80 | .step = 1, |
81 | #define FREQ_DEF 1 | 81 | #define FREQ_DEF 1 |
82 | .default_value = FREQ_DEF, | 82 | .default_value = FREQ_DEF, |
83 | .default_value = 1, | ||
84 | }, | 83 | }, |
85 | .set = sd_setfreq, | 84 | .set = sd_setfreq, |
86 | .get = sd_getfreq, | 85 | .get = sd_getfreq, |
diff --git a/drivers/media/video/ovcamchip/ovcamchip_core.c b/drivers/media/video/ovcamchip/ovcamchip_core.c index 065c2454113e..2c4acbf5a4fe 100644 --- a/drivers/media/video/ovcamchip/ovcamchip_core.c +++ b/drivers/media/video/ovcamchip/ovcamchip_core.c | |||
@@ -49,12 +49,6 @@ MODULE_LICENSE("GPL"); | |||
49 | #define GENERIC_REG_ID_LOW 0x1D /* manufacturer ID LSB */ | 49 | #define GENERIC_REG_ID_LOW 0x1D /* manufacturer ID LSB */ |
50 | #define GENERIC_REG_COM_I 0x29 /* misc ID bits */ | 50 | #define GENERIC_REG_COM_I 0x29 /* misc ID bits */ |
51 | 51 | ||
52 | extern struct ovcamchip_ops ov6x20_ops; | ||
53 | extern struct ovcamchip_ops ov6x30_ops; | ||
54 | extern struct ovcamchip_ops ov7x10_ops; | ||
55 | extern struct ovcamchip_ops ov7x20_ops; | ||
56 | extern struct ovcamchip_ops ov76be_ops; | ||
57 | |||
58 | static char *chip_names[NUM_CC_TYPES] = { | 52 | static char *chip_names[NUM_CC_TYPES] = { |
59 | [CC_UNKNOWN] = "Unknown chip", | 53 | [CC_UNKNOWN] = "Unknown chip", |
60 | [CC_OV76BE] = "OV76BE", | 54 | [CC_OV76BE] = "OV76BE", |
diff --git a/drivers/media/video/ovcamchip/ovcamchip_priv.h b/drivers/media/video/ovcamchip/ovcamchip_priv.h index 9afa4fe47726..a05650faedda 100644 --- a/drivers/media/video/ovcamchip/ovcamchip_priv.h +++ b/drivers/media/video/ovcamchip/ovcamchip_priv.h | |||
@@ -53,6 +53,12 @@ struct ovcamchip { | |||
53 | int initialized; /* OVCAMCHIP_CMD_INITIALIZE was successful */ | 53 | int initialized; /* OVCAMCHIP_CMD_INITIALIZE was successful */ |
54 | }; | 54 | }; |
55 | 55 | ||
56 | extern struct ovcamchip_ops ov6x20_ops; | ||
57 | extern struct ovcamchip_ops ov6x30_ops; | ||
58 | extern struct ovcamchip_ops ov7x10_ops; | ||
59 | extern struct ovcamchip_ops ov7x20_ops; | ||
60 | extern struct ovcamchip_ops ov76be_ops; | ||
61 | |||
56 | /* --------------------------------- */ | 62 | /* --------------------------------- */ |
57 | /* I2C I/O */ | 63 | /* I2C I/O */ |
58 | /* --------------------------------- */ | 64 | /* --------------------------------- */ |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c index 77289a1c8cb2..d6a35401fefb 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c +++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.c | |||
@@ -827,7 +827,7 @@ static unsigned int pvr2_i2c_client_describe(struct pvr2_i2c_client *cp, | |||
827 | if ((detail & PVR2_I2C_DETAIL_CTLMASK) && cp->ctl_mask) { | 827 | if ((detail & PVR2_I2C_DETAIL_CTLMASK) && cp->ctl_mask) { |
828 | unsigned int idx; | 828 | unsigned int idx; |
829 | unsigned long msk,sm; | 829 | unsigned long msk,sm; |
830 | int spcfl; | 830 | |
831 | bcnt = scnprintf(buf,maxlen," ["); | 831 | bcnt = scnprintf(buf,maxlen," ["); |
832 | ccnt += bcnt; buf += bcnt; maxlen -= bcnt; | 832 | ccnt += bcnt; buf += bcnt; maxlen -= bcnt; |
833 | sm = 0; | 833 | sm = 0; |
diff --git a/drivers/media/video/s2255drv.c b/drivers/media/video/s2255drv.c index b8e104552206..5272926db73e 100644 --- a/drivers/media/video/s2255drv.c +++ b/drivers/media/video/s2255drv.c | |||
@@ -491,7 +491,7 @@ static void planar422p_to_yuv_packed(const unsigned char *in, | |||
491 | return; | 491 | return; |
492 | } | 492 | } |
493 | 493 | ||
494 | void s2255_reset_dsppower(struct s2255_dev *dev) | 494 | static void s2255_reset_dsppower(struct s2255_dev *dev) |
495 | { | 495 | { |
496 | s2255_vendor_req(dev, 0x40, 0x0b0b, 0x0b0b, NULL, 0, 1); | 496 | s2255_vendor_req(dev, 0x40, 0x0b0b, 0x0b0b, NULL, 0, 1); |
497 | msleep(10); | 497 | msleep(10); |
diff --git a/drivers/media/video/sn9c102/sn9c102_core.c b/drivers/media/video/sn9c102/sn9c102_core.c index 4b76c45c148c..20e30bd9364b 100644 --- a/drivers/media/video/sn9c102/sn9c102_core.c +++ b/drivers/media/video/sn9c102/sn9c102_core.c | |||
@@ -116,6 +116,26 @@ MODULE_PARM_DESC(debug, | |||
116 | "\n"); | 116 | "\n"); |
117 | #endif | 117 | #endif |
118 | 118 | ||
119 | /* | ||
120 | Add the probe entries to this table. Be sure to add the entry in the right | ||
121 | place, since, on failure, the next probing routine is called according to | ||
122 | the order of the list below, from top to bottom. | ||
123 | */ | ||
124 | static int (*sn9c102_sensor_table[])(struct sn9c102_device *) = { | ||
125 | &sn9c102_probe_hv7131d, /* strong detection based on SENSOR ids */ | ||
126 | &sn9c102_probe_hv7131r, /* strong detection based on SENSOR ids */ | ||
127 | &sn9c102_probe_mi0343, /* strong detection based on SENSOR ids */ | ||
128 | &sn9c102_probe_mi0360, /* strong detection based on SENSOR ids */ | ||
129 | &sn9c102_probe_mt9v111, /* strong detection based on SENSOR ids */ | ||
130 | &sn9c102_probe_pas106b, /* strong detection based on SENSOR ids */ | ||
131 | &sn9c102_probe_pas202bcb, /* strong detection based on SENSOR ids */ | ||
132 | &sn9c102_probe_ov7630, /* strong detection based on SENSOR ids */ | ||
133 | &sn9c102_probe_ov7660, /* strong detection based on SENSOR ids */ | ||
134 | &sn9c102_probe_tas5110c1b, /* detection based on USB pid/vid */ | ||
135 | &sn9c102_probe_tas5110d, /* detection based on USB pid/vid */ | ||
136 | &sn9c102_probe_tas5130d1b, /* detection based on USB pid/vid */ | ||
137 | }; | ||
138 | |||
119 | /*****************************************************************************/ | 139 | /*****************************************************************************/ |
120 | 140 | ||
121 | static u32 | 141 | static u32 |
diff --git a/drivers/media/video/sn9c102/sn9c102_devtable.h b/drivers/media/video/sn9c102/sn9c102_devtable.h index 90a401dc3884..e23734f6d6e2 100644 --- a/drivers/media/video/sn9c102/sn9c102_devtable.h +++ b/drivers/media/video/sn9c102/sn9c102_devtable.h | |||
@@ -140,24 +140,4 @@ extern int sn9c102_probe_tas5110c1b(struct sn9c102_device* cam); | |||
140 | extern int sn9c102_probe_tas5110d(struct sn9c102_device* cam); | 140 | extern int sn9c102_probe_tas5110d(struct sn9c102_device* cam); |
141 | extern int sn9c102_probe_tas5130d1b(struct sn9c102_device* cam); | 141 | extern int sn9c102_probe_tas5130d1b(struct sn9c102_device* cam); |
142 | 142 | ||
143 | /* | ||
144 | Add the above entries to this table. Be sure to add the entry in the right | ||
145 | place, since, on failure, the next probing routine is called according to | ||
146 | the order of the list below, from top to bottom. | ||
147 | */ | ||
148 | static int (*sn9c102_sensor_table[])(struct sn9c102_device*) = { | ||
149 | &sn9c102_probe_hv7131d, /* strong detection based on SENSOR ids */ | ||
150 | &sn9c102_probe_hv7131r, /* strong detection based on SENSOR ids */ | ||
151 | &sn9c102_probe_mi0343, /* strong detection based on SENSOR ids */ | ||
152 | &sn9c102_probe_mi0360, /* strong detection based on SENSOR ids */ | ||
153 | &sn9c102_probe_mt9v111, /* strong detection based on SENSOR ids */ | ||
154 | &sn9c102_probe_pas106b, /* strong detection based on SENSOR ids */ | ||
155 | &sn9c102_probe_pas202bcb, /* strong detection based on SENSOR ids */ | ||
156 | &sn9c102_probe_ov7630, /* strong detection based on SENSOR ids */ | ||
157 | &sn9c102_probe_ov7660, /* strong detection based on SENSOR ids */ | ||
158 | &sn9c102_probe_tas5110c1b, /* detection based on USB pid/vid */ | ||
159 | &sn9c102_probe_tas5110d, /* detection based on USB pid/vid */ | ||
160 | &sn9c102_probe_tas5130d1b, /* detection based on USB pid/vid */ | ||
161 | }; | ||
162 | |||
163 | #endif /* _SN9C102_DEVTABLE_H_ */ | 143 | #endif /* _SN9C102_DEVTABLE_H_ */ |
diff --git a/drivers/media/video/sn9c102/sn9c102_hv7131d.c b/drivers/media/video/sn9c102/sn9c102_hv7131d.c index eaf9ad0dc8a6..db2434948939 100644 --- a/drivers/media/video/sn9c102/sn9c102_hv7131d.c +++ b/drivers/media/video/sn9c102/sn9c102_hv7131d.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int hv7131d_init(struct sn9c102_device* cam) | 26 | static int hv7131d_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_hv7131r.c b/drivers/media/video/sn9c102/sn9c102_hv7131r.c index 0fc401223cfc..4295887ff609 100644 --- a/drivers/media/video/sn9c102/sn9c102_hv7131r.c +++ b/drivers/media/video/sn9c102/sn9c102_hv7131r.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int hv7131r_init(struct sn9c102_device* cam) | 26 | static int hv7131r_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_mi0343.c b/drivers/media/video/sn9c102/sn9c102_mi0343.c index 00b134ca0a3d..1f5b09bec89c 100644 --- a/drivers/media/video/sn9c102/sn9c102_mi0343.c +++ b/drivers/media/video/sn9c102/sn9c102_mi0343.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int mi0343_init(struct sn9c102_device* cam) | 26 | static int mi0343_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_mi0360.c b/drivers/media/video/sn9c102/sn9c102_mi0360.c index f8d81d82e8d5..d973fc1973d9 100644 --- a/drivers/media/video/sn9c102/sn9c102_mi0360.c +++ b/drivers/media/video/sn9c102/sn9c102_mi0360.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int mi0360_init(struct sn9c102_device* cam) | 26 | static int mi0360_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_mt9v111.c b/drivers/media/video/sn9c102/sn9c102_mt9v111.c index 3b98ac3bbc38..95986eb492e4 100644 --- a/drivers/media/video/sn9c102/sn9c102_mt9v111.c +++ b/drivers/media/video/sn9c102/sn9c102_mt9v111.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int mt9v111_init(struct sn9c102_device *cam) | 26 | static int mt9v111_init(struct sn9c102_device *cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_ov7630.c b/drivers/media/video/sn9c102/sn9c102_ov7630.c index e4856fd77982..803712c29f02 100644 --- a/drivers/media/video/sn9c102/sn9c102_ov7630.c +++ b/drivers/media/video/sn9c102/sn9c102_ov7630.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int ov7630_init(struct sn9c102_device* cam) | 26 | static int ov7630_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_ov7660.c b/drivers/media/video/sn9c102/sn9c102_ov7660.c index 8aae416ba8ec..7977795d342b 100644 --- a/drivers/media/video/sn9c102/sn9c102_ov7660.c +++ b/drivers/media/video/sn9c102/sn9c102_ov7660.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int ov7660_init(struct sn9c102_device* cam) | 26 | static int ov7660_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_pas106b.c b/drivers/media/video/sn9c102/sn9c102_pas106b.c index 360f2a848bc0..81cd969c1b7b 100644 --- a/drivers/media/video/sn9c102/sn9c102_pas106b.c +++ b/drivers/media/video/sn9c102/sn9c102_pas106b.c | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
23 | #include "sn9c102_sensor.h" | 23 | #include "sn9c102_sensor.h" |
24 | #include "sn9c102_devtable.h" | ||
24 | 25 | ||
25 | 26 | ||
26 | static int pas106b_init(struct sn9c102_device* cam) | 27 | static int pas106b_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_pas202bcb.c b/drivers/media/video/sn9c102/sn9c102_pas202bcb.c index ca4a1506ed3d..2782f94cf6f8 100644 --- a/drivers/media/video/sn9c102/sn9c102_pas202bcb.c +++ b/drivers/media/video/sn9c102/sn9c102_pas202bcb.c | |||
@@ -26,6 +26,7 @@ | |||
26 | 26 | ||
27 | #include <linux/delay.h> | 27 | #include <linux/delay.h> |
28 | #include "sn9c102_sensor.h" | 28 | #include "sn9c102_sensor.h" |
29 | #include "sn9c102_devtable.h" | ||
29 | 30 | ||
30 | 31 | ||
31 | static int pas202bcb_init(struct sn9c102_device* cam) | 32 | static int pas202bcb_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_tas5110c1b.c b/drivers/media/video/sn9c102/sn9c102_tas5110c1b.c index e7d2de2bace1..04cdfdde8564 100644 --- a/drivers/media/video/sn9c102/sn9c102_tas5110c1b.c +++ b/drivers/media/video/sn9c102/sn9c102_tas5110c1b.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int tas5110c1b_init(struct sn9c102_device* cam) | 26 | static int tas5110c1b_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_tas5110d.c b/drivers/media/video/sn9c102/sn9c102_tas5110d.c index d32fdbccdc5e..9372e6f9fcff 100644 --- a/drivers/media/video/sn9c102/sn9c102_tas5110d.c +++ b/drivers/media/video/sn9c102/sn9c102_tas5110d.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int tas5110d_init(struct sn9c102_device* cam) | 26 | static int tas5110d_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/sn9c102/sn9c102_tas5130d1b.c b/drivers/media/video/sn9c102/sn9c102_tas5130d1b.c index 56fb1d575a8a..a30bbc4389f5 100644 --- a/drivers/media/video/sn9c102/sn9c102_tas5130d1b.c +++ b/drivers/media/video/sn9c102/sn9c102_tas5130d1b.c | |||
@@ -20,6 +20,7 @@ | |||
20 | ***************************************************************************/ | 20 | ***************************************************************************/ |
21 | 21 | ||
22 | #include "sn9c102_sensor.h" | 22 | #include "sn9c102_sensor.h" |
23 | #include "sn9c102_devtable.h" | ||
23 | 24 | ||
24 | 25 | ||
25 | static int tas5130d1b_init(struct sn9c102_device* cam) | 26 | static int tas5130d1b_init(struct sn9c102_device* cam) |
diff --git a/drivers/media/video/zoran_device.c b/drivers/media/video/zoran_device.c index 2b3ca1493373..5d948ff7faf0 100644 --- a/drivers/media/video/zoran_device.c +++ b/drivers/media/video/zoran_device.c | |||
@@ -58,8 +58,6 @@ | |||
58 | ZR36057_ISR_GIRQ1 | \ | 58 | ZR36057_ISR_GIRQ1 | \ |
59 | ZR36057_ISR_JPEGRepIRQ ) | 59 | ZR36057_ISR_JPEGRepIRQ ) |
60 | 60 | ||
61 | extern const struct zoran_format zoran_formats[]; | ||
62 | |||
63 | static int lml33dpath; /* default = 0 | 61 | static int lml33dpath; /* default = 0 |
64 | * 1 will use digital path in capture | 62 | * 1 will use digital path in capture |
65 | * mode instead of analog. It can be | 63 | * mode instead of analog. It can be |
diff --git a/drivers/media/video/zoran_device.h b/drivers/media/video/zoran_device.h index 37fa86a34083..74c6c8edb7d0 100644 --- a/drivers/media/video/zoran_device.h +++ b/drivers/media/video/zoran_device.h | |||
@@ -78,6 +78,14 @@ extern void zoran_set_pci_master(struct zoran *zr, | |||
78 | extern void zoran_init_hardware(struct zoran *zr); | 78 | extern void zoran_init_hardware(struct zoran *zr); |
79 | extern void zr36057_restart(struct zoran *zr); | 79 | extern void zr36057_restart(struct zoran *zr); |
80 | 80 | ||
81 | extern const struct zoran_format zoran_formats[]; | ||
82 | |||
83 | extern int v4l_nbufs; | ||
84 | extern int v4l_bufsize; | ||
85 | extern int jpg_nbufs; | ||
86 | extern int jpg_bufsize; | ||
87 | extern int pass_through; | ||
88 | |||
81 | /* i2c */ | 89 | /* i2c */ |
82 | extern int decoder_command(struct zoran *zr, | 90 | extern int decoder_command(struct zoran *zr, |
83 | int cmd, | 91 | int cmd, |
diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c index 4aa1a765626d..f0af9b7f8ffc 100644 --- a/drivers/media/video/zoran_driver.c +++ b/drivers/media/video/zoran_driver.c | |||
@@ -194,12 +194,6 @@ const struct zoran_format zoran_formats[] = { | |||
194 | // RJ: Test only - want to test BUZ_USE_HIMEM even when CONFIG_BIGPHYS_AREA is defined | 194 | // RJ: Test only - want to test BUZ_USE_HIMEM even when CONFIG_BIGPHYS_AREA is defined |
195 | 195 | ||
196 | 196 | ||
197 | extern int v4l_nbufs; | ||
198 | extern int v4l_bufsize; | ||
199 | extern int jpg_nbufs; | ||
200 | extern int jpg_bufsize; | ||
201 | extern int pass_through; | ||
202 | |||
203 | static int lock_norm; /* 0 = default 1 = Don't change TV standard (norm) */ | 197 | static int lock_norm; /* 0 = default 1 = Don't change TV standard (norm) */ |
204 | module_param(lock_norm, int, 0644); | 198 | module_param(lock_norm, int, 0644); |
205 | MODULE_PARM_DESC(lock_norm, "Prevent norm changes (1 = ignore, >1 = fail)"); | 199 | MODULE_PARM_DESC(lock_norm, "Prevent norm changes (1 = ignore, >1 = fail)"); |