diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-04-20 05:26:19 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-14 13:46:23 -0400 |
commit | 30fdf035874a3b3f5d54f75147bddc2467cb0b7d (patch) | |
tree | d8224bdc978f1ca4924392ded022b52f2a38665a /drivers | |
parent | 932205a7ea64bab9edda04b9d555a277b57943fd (diff) |
[media] cx25821: fix compiler warnings
media_build/v4l/cx25821-core.c: In function 'cx_i2c_read_print':
media_build/v4l/cx25821-core.c:386:6: warning: variable 'value' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-core.c: In function 'cx25821_dev_setup':
media_build/v4l/cx25821-core.c:899:6: warning: variable 'io_size' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-core.c: In function 'cx25821_irq':
media_build/v4l/cx25821-core.c:1321:18: warning: variable 'pci_mask' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-i2c.c: In function 'cx25821_i2c_read':
media_build/v4l/cx25821-i2c.c:365:6: warning: variable 'retval' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-medusa-video.c: In function 'medusa_enable_bluefield_output':
media_build/v4l/cx25821-medusa-video.c:39:6: warning: variable 'ret_val' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-medusa-video.c: In function 'medusa_set_resolution':
media_build/v4l/cx25821-medusa-video.c:435:6: warning: variable 'ret_val' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-medusa-video.c: In function 'medusa_set_decoderduration':
media_build/v4l/cx25821-medusa-video.c:498:6: warning: variable 'ret_val' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-video.c: In function 'cx25821_dump_video_queue':
media_build/v4l/cx25821-video.c:116:25: warning: variable 'buf' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-video.c: In function 'cx25821_buffer_prepare':
media_build/v4l/cx25821-video.c:561:20: warning: variable 'line1_offset' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-video.c: In function 'video_ioctl_set':
media_build/v4l/cx25821-video.c:1834:6: warning: variable 'value' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-video-upstream.c: In function 'cx25821_upstream_irq':
media_build/v4l/cx25821-video-upstream.c:641:6: warning: variable 'msk_stat' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-video-upstream-ch2.c: In function 'cx25821_upstream_irq_ch2':
media_build/v4l/cx25821-video-upstream-ch2.c:591:6: warning: variable 'msk_stat' set but not used [-Wunused-but-set-variable]
media_build/v4l/cx25821-audio-upstream.c: In function 'cx25821_upstream_irq_audio':
media_build/v4l/cx25821-audio-upstream.c:589:6: warning: variable 'msk_stat' set but not used [-Wunused-but-set-variable]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/cx25821/cx25821-audio-upstream.c | 3 | ||||
-rw-r--r-- | drivers/media/video/cx25821/cx25821-core.c | 14 | ||||
-rw-r--r-- | drivers/media/video/cx25821/cx25821-i2c.c | 3 | ||||
-rw-r--r-- | drivers/media/video/cx25821/cx25821-medusa-video.c | 13 | ||||
-rw-r--r-- | drivers/media/video/cx25821/cx25821-video-upstream-ch2.c | 3 | ||||
-rw-r--r-- | drivers/media/video/cx25821/cx25821-video-upstream.c | 3 | ||||
-rw-r--r-- | drivers/media/video/cx25821/cx25821-video.c | 25 | ||||
-rw-r--r-- | drivers/media/video/cx25821/cx25821-video.h | 2 |
8 files changed, 13 insertions, 53 deletions
diff --git a/drivers/media/video/cx25821/cx25821-audio-upstream.c b/drivers/media/video/cx25821/cx25821-audio-upstream.c index 20c7ca3351a8..8b2a99975c23 100644 --- a/drivers/media/video/cx25821/cx25821-audio-upstream.c +++ b/drivers/media/video/cx25821/cx25821-audio-upstream.c | |||
@@ -585,7 +585,7 @@ int cx25821_audio_upstream_irq(struct cx25821_dev *dev, int chan_num, | |||
585 | static irqreturn_t cx25821_upstream_irq_audio(int irq, void *dev_id) | 585 | static irqreturn_t cx25821_upstream_irq_audio(int irq, void *dev_id) |
586 | { | 586 | { |
587 | struct cx25821_dev *dev = dev_id; | 587 | struct cx25821_dev *dev = dev_id; |
588 | u32 msk_stat, audio_status; | 588 | u32 audio_status; |
589 | int handled = 0; | 589 | int handled = 0; |
590 | struct sram_channel *sram_ch; | 590 | struct sram_channel *sram_ch; |
591 | 591 | ||
@@ -594,7 +594,6 @@ static irqreturn_t cx25821_upstream_irq_audio(int irq, void *dev_id) | |||
594 | 594 | ||
595 | sram_ch = dev->channels[dev->_audio_upstream_channel].sram_channels; | 595 | sram_ch = dev->channels[dev->_audio_upstream_channel].sram_channels; |
596 | 596 | ||
597 | msk_stat = cx_read(sram_ch->int_mstat); | ||
598 | audio_status = cx_read(sram_ch->int_stat); | 597 | audio_status = cx_read(sram_ch->int_stat); |
599 | 598 | ||
600 | /* Only deal with our interrupt */ | 599 | /* Only deal with our interrupt */ |
diff --git a/drivers/media/video/cx25821/cx25821-core.c b/drivers/media/video/cx25821/cx25821-core.c index 7930ca58349f..83c1aa6b2e6c 100644 --- a/drivers/media/video/cx25821/cx25821-core.c +++ b/drivers/media/video/cx25821/cx25821-core.c | |||
@@ -379,14 +379,6 @@ static inline int i2c_slave_did_ack(struct i2c_adapter *i2c_adap) | |||
379 | return cx_read(bus->reg_stat) & 0x01; | 379 | return cx_read(bus->reg_stat) & 0x01; |
380 | } | 380 | } |
381 | 381 | ||
382 | void cx_i2c_read_print(struct cx25821_dev *dev, u32 reg, const char *reg_string) | ||
383 | { | ||
384 | int tmp = 0; | ||
385 | u32 value = 0; | ||
386 | |||
387 | value = cx25821_i2c_read(&dev->i2c_bus[0], reg, &tmp); | ||
388 | } | ||
389 | |||
390 | static void cx25821_registers_init(struct cx25821_dev *dev) | 382 | static void cx25821_registers_init(struct cx25821_dev *dev) |
391 | { | 383 | { |
392 | u32 tmp; | 384 | u32 tmp; |
@@ -895,7 +887,7 @@ static void cx25821_iounmap(struct cx25821_dev *dev) | |||
895 | 887 | ||
896 | static int cx25821_dev_setup(struct cx25821_dev *dev) | 888 | static int cx25821_dev_setup(struct cx25821_dev *dev) |
897 | { | 889 | { |
898 | int io_size = 0, i; | 890 | int i; |
899 | 891 | ||
900 | pr_info("\n***********************************\n"); | 892 | pr_info("\n***********************************\n"); |
901 | pr_info("cx25821 set up\n"); | 893 | pr_info("cx25821 set up\n"); |
@@ -960,7 +952,6 @@ static int cx25821_dev_setup(struct cx25821_dev *dev) | |||
960 | 952 | ||
961 | /* PCIe stuff */ | 953 | /* PCIe stuff */ |
962 | dev->base_io_addr = pci_resource_start(dev->pci, 0); | 954 | dev->base_io_addr = pci_resource_start(dev->pci, 0); |
963 | io_size = pci_resource_len(dev->pci, 0); | ||
964 | 955 | ||
965 | if (!dev->base_io_addr) { | 956 | if (!dev->base_io_addr) { |
966 | CX25821_ERR("No PCI Memory resources, exiting!\n"); | 957 | CX25821_ERR("No PCI Memory resources, exiting!\n"); |
@@ -1317,13 +1308,12 @@ void cx25821_free_buffer(struct videobuf_queue *q, struct cx25821_buffer *buf) | |||
1317 | static irqreturn_t cx25821_irq(int irq, void *dev_id) | 1308 | static irqreturn_t cx25821_irq(int irq, void *dev_id) |
1318 | { | 1309 | { |
1319 | struct cx25821_dev *dev = dev_id; | 1310 | struct cx25821_dev *dev = dev_id; |
1320 | u32 pci_status, pci_mask; | 1311 | u32 pci_status; |
1321 | u32 vid_status; | 1312 | u32 vid_status; |
1322 | int i, handled = 0; | 1313 | int i, handled = 0; |
1323 | u32 mask[8] = { 1, 2, 4, 8, 16, 32, 64, 128 }; | 1314 | u32 mask[8] = { 1, 2, 4, 8, 16, 32, 64, 128 }; |
1324 | 1315 | ||
1325 | pci_status = cx_read(PCI_INT_STAT); | 1316 | pci_status = cx_read(PCI_INT_STAT); |
1326 | pci_mask = cx_read(PCI_INT_MSK); | ||
1327 | 1317 | ||
1328 | if (pci_status == 0) | 1318 | if (pci_status == 0) |
1329 | goto out; | 1319 | goto out; |
diff --git a/drivers/media/video/cx25821/cx25821-i2c.c b/drivers/media/video/cx25821/cx25821-i2c.c index 12d7300fa1e9..6311180f430c 100644 --- a/drivers/media/video/cx25821/cx25821-i2c.c +++ b/drivers/media/video/cx25821/cx25821-i2c.c | |||
@@ -361,7 +361,6 @@ void cx25821_av_clk(struct cx25821_dev *dev, int enable) | |||
361 | int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value) | 361 | int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value) |
362 | { | 362 | { |
363 | struct i2c_client *client = &bus->i2c_client; | 363 | struct i2c_client *client = &bus->i2c_client; |
364 | int retval = 0; | ||
365 | int v = 0; | 364 | int v = 0; |
366 | u8 addr[2] = { 0, 0 }; | 365 | u8 addr[2] = { 0, 0 }; |
367 | u8 buf[4] = { 0, 0, 0, 0 }; | 366 | u8 buf[4] = { 0, 0, 0, 0 }; |
@@ -385,7 +384,7 @@ int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value) | |||
385 | msgs[0].addr = 0x44; | 384 | msgs[0].addr = 0x44; |
386 | msgs[1].addr = 0x44; | 385 | msgs[1].addr = 0x44; |
387 | 386 | ||
388 | retval = i2c_xfer(client->adapter, msgs, 2); | 387 | i2c_xfer(client->adapter, msgs, 2); |
389 | 388 | ||
390 | v = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; | 389 | v = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; |
391 | *value = v; | 390 | *value = v; |
diff --git a/drivers/media/video/cx25821/cx25821-medusa-video.c b/drivers/media/video/cx25821/cx25821-medusa-video.c index 298a68d98c2f..313fb20a0b47 100644 --- a/drivers/media/video/cx25821/cx25821-medusa-video.c +++ b/drivers/media/video/cx25821/cx25821-medusa-video.c | |||
@@ -35,7 +35,6 @@ | |||
35 | static void medusa_enable_bluefield_output(struct cx25821_dev *dev, int channel, | 35 | static void medusa_enable_bluefield_output(struct cx25821_dev *dev, int channel, |
36 | int enable) | 36 | int enable) |
37 | { | 37 | { |
38 | int ret_val = 1; | ||
39 | u32 value = 0; | 38 | u32 value = 0; |
40 | u32 tmp = 0; | 39 | u32 tmp = 0; |
41 | int out_ctrl = OUT_CTRL1; | 40 | int out_ctrl = OUT_CTRL1; |
@@ -79,13 +78,13 @@ static void medusa_enable_bluefield_output(struct cx25821_dev *dev, int channel, | |||
79 | value &= 0xFFFFFF7F; /* clear BLUE_FIELD_EN */ | 78 | value &= 0xFFFFFF7F; /* clear BLUE_FIELD_EN */ |
80 | if (enable) | 79 | if (enable) |
81 | value |= 0x00000080; /* set BLUE_FIELD_EN */ | 80 | value |= 0x00000080; /* set BLUE_FIELD_EN */ |
82 | ret_val = cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl, value); | 81 | cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl, value); |
83 | 82 | ||
84 | value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl_ns, &tmp); | 83 | value = cx25821_i2c_read(&dev->i2c_bus[0], out_ctrl_ns, &tmp); |
85 | value &= 0xFFFFFF7F; | 84 | value &= 0xFFFFFF7F; |
86 | if (enable) | 85 | if (enable) |
87 | value |= 0x00000080; /* set BLUE_FIELD_EN */ | 86 | value |= 0x00000080; /* set BLUE_FIELD_EN */ |
88 | ret_val = cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl_ns, value); | 87 | cx25821_i2c_write(&dev->i2c_bus[0], out_ctrl_ns, value); |
89 | } | 88 | } |
90 | 89 | ||
91 | static int medusa_initialize_ntsc(struct cx25821_dev *dev) | 90 | static int medusa_initialize_ntsc(struct cx25821_dev *dev) |
@@ -431,7 +430,6 @@ void medusa_set_resolution(struct cx25821_dev *dev, int width, | |||
431 | { | 430 | { |
432 | int decoder = 0; | 431 | int decoder = 0; |
433 | int decoder_count = 0; | 432 | int decoder_count = 0; |
434 | int ret_val = 0; | ||
435 | u32 hscale = 0x0; | 433 | u32 hscale = 0x0; |
436 | u32 vscale = 0x0; | 434 | u32 vscale = 0x0; |
437 | const int MAX_WIDTH = 720; | 435 | const int MAX_WIDTH = 720; |
@@ -482,9 +480,9 @@ void medusa_set_resolution(struct cx25821_dev *dev, int width, | |||
482 | 480 | ||
483 | for (; decoder < decoder_count; decoder++) { | 481 | for (; decoder < decoder_count; decoder++) { |
484 | /* write scaling values for each decoder */ | 482 | /* write scaling values for each decoder */ |
485 | ret_val = cx25821_i2c_write(&dev->i2c_bus[0], | 483 | cx25821_i2c_write(&dev->i2c_bus[0], |
486 | HSCALE_CTRL + (0x200 * decoder), hscale); | 484 | HSCALE_CTRL + (0x200 * decoder), hscale); |
487 | ret_val = cx25821_i2c_write(&dev->i2c_bus[0], | 485 | cx25821_i2c_write(&dev->i2c_bus[0], |
488 | VSCALE_CTRL + (0x200 * decoder), vscale); | 486 | VSCALE_CTRL + (0x200 * decoder), vscale); |
489 | } | 487 | } |
490 | 488 | ||
@@ -494,7 +492,6 @@ void medusa_set_resolution(struct cx25821_dev *dev, int width, | |||
494 | static void medusa_set_decoderduration(struct cx25821_dev *dev, int decoder, | 492 | static void medusa_set_decoderduration(struct cx25821_dev *dev, int decoder, |
495 | int duration) | 493 | int duration) |
496 | { | 494 | { |
497 | int ret_val = 0; | ||
498 | u32 fld_cnt = 0; | 495 | u32 fld_cnt = 0; |
499 | u32 tmp = 0; | 496 | u32 tmp = 0; |
500 | u32 disp_cnt_reg = DISP_AB_CNT; | 497 | u32 disp_cnt_reg = DISP_AB_CNT; |
@@ -537,7 +534,7 @@ static void medusa_set_decoderduration(struct cx25821_dev *dev, int decoder, | |||
537 | fld_cnt |= ((u32) duration) << 16; | 534 | fld_cnt |= ((u32) duration) << 16; |
538 | } | 535 | } |
539 | 536 | ||
540 | ret_val = cx25821_i2c_write(&dev->i2c_bus[0], disp_cnt_reg, fld_cnt); | 537 | cx25821_i2c_write(&dev->i2c_bus[0], disp_cnt_reg, fld_cnt); |
541 | 538 | ||
542 | mutex_unlock(&dev->lock); | 539 | mutex_unlock(&dev->lock); |
543 | } | 540 | } |
diff --git a/drivers/media/video/cx25821/cx25821-video-upstream-ch2.c b/drivers/media/video/cx25821/cx25821-video-upstream-ch2.c index 5a157cf4a95e..c8c94fbf5d8d 100644 --- a/drivers/media/video/cx25821/cx25821-video-upstream-ch2.c +++ b/drivers/media/video/cx25821/cx25821-video-upstream-ch2.c | |||
@@ -587,7 +587,7 @@ int cx25821_video_upstream_irq_ch2(struct cx25821_dev *dev, int chan_num, | |||
587 | static irqreturn_t cx25821_upstream_irq_ch2(int irq, void *dev_id) | 587 | static irqreturn_t cx25821_upstream_irq_ch2(int irq, void *dev_id) |
588 | { | 588 | { |
589 | struct cx25821_dev *dev = dev_id; | 589 | struct cx25821_dev *dev = dev_id; |
590 | u32 msk_stat, vid_status; | 590 | u32 vid_status; |
591 | int handled = 0; | 591 | int handled = 0; |
592 | int channel_num = 0; | 592 | int channel_num = 0; |
593 | struct sram_channel *sram_ch; | 593 | struct sram_channel *sram_ch; |
@@ -598,7 +598,6 @@ static irqreturn_t cx25821_upstream_irq_ch2(int irq, void *dev_id) | |||
598 | channel_num = VID_UPSTREAM_SRAM_CHANNEL_J; | 598 | channel_num = VID_UPSTREAM_SRAM_CHANNEL_J; |
599 | sram_ch = dev->channels[channel_num].sram_channels; | 599 | sram_ch = dev->channels[channel_num].sram_channels; |
600 | 600 | ||
601 | msk_stat = cx_read(sram_ch->int_mstat); | ||
602 | vid_status = cx_read(sram_ch->int_stat); | 601 | vid_status = cx_read(sram_ch->int_stat); |
603 | 602 | ||
604 | /* Only deal with our interrupt */ | 603 | /* Only deal with our interrupt */ |
diff --git a/drivers/media/video/cx25821/cx25821-video-upstream.c b/drivers/media/video/cx25821/cx25821-video-upstream.c index 21e7d657f049..52c13e0b6492 100644 --- a/drivers/media/video/cx25821/cx25821-video-upstream.c +++ b/drivers/media/video/cx25821/cx25821-video-upstream.c | |||
@@ -637,7 +637,7 @@ int cx25821_video_upstream_irq(struct cx25821_dev *dev, int chan_num, | |||
637 | static irqreturn_t cx25821_upstream_irq(int irq, void *dev_id) | 637 | static irqreturn_t cx25821_upstream_irq(int irq, void *dev_id) |
638 | { | 638 | { |
639 | struct cx25821_dev *dev = dev_id; | 639 | struct cx25821_dev *dev = dev_id; |
640 | u32 msk_stat, vid_status; | 640 | u32 vid_status; |
641 | int handled = 0; | 641 | int handled = 0; |
642 | int channel_num = 0; | 642 | int channel_num = 0; |
643 | struct sram_channel *sram_ch; | 643 | struct sram_channel *sram_ch; |
@@ -649,7 +649,6 @@ static irqreturn_t cx25821_upstream_irq(int irq, void *dev_id) | |||
649 | 649 | ||
650 | sram_ch = dev->channels[channel_num].sram_channels; | 650 | sram_ch = dev->channels[channel_num].sram_channels; |
651 | 651 | ||
652 | msk_stat = cx_read(sram_ch->int_mstat); | ||
653 | vid_status = cx_read(sram_ch->int_stat); | 652 | vid_status = cx_read(sram_ch->int_stat); |
654 | 653 | ||
655 | /* Only deal with our interrupt */ | 654 | /* Only deal with our interrupt */ |
diff --git a/drivers/media/video/cx25821/cx25821-video.c b/drivers/media/video/cx25821/cx25821-video.c index ffd8bc79c02e..b38d4379cc36 100644 --- a/drivers/media/video/cx25821/cx25821-video.c +++ b/drivers/media/video/cx25821/cx25821-video.c | |||
@@ -109,25 +109,6 @@ struct cx25821_fmt *cx25821_format_by_fourcc(unsigned int fourcc) | |||
109 | return NULL; | 109 | return NULL; |
110 | } | 110 | } |
111 | 111 | ||
112 | void cx25821_dump_video_queue(struct cx25821_dev *dev, | ||
113 | struct cx25821_dmaqueue *q) | ||
114 | { | ||
115 | struct cx25821_buffer *buf; | ||
116 | struct list_head *item; | ||
117 | dprintk(1, "%s()\n", __func__); | ||
118 | |||
119 | if (!list_empty(&q->active)) { | ||
120 | list_for_each(item, &q->active) | ||
121 | buf = list_entry(item, struct cx25821_buffer, vb.queue); | ||
122 | } | ||
123 | |||
124 | if (!list_empty(&q->queued)) { | ||
125 | list_for_each(item, &q->queued) | ||
126 | buf = list_entry(item, struct cx25821_buffer, vb.queue); | ||
127 | } | ||
128 | |||
129 | } | ||
130 | |||
131 | void cx25821_video_wakeup(struct cx25821_dev *dev, struct cx25821_dmaqueue *q, | 112 | void cx25821_video_wakeup(struct cx25821_dev *dev, struct cx25821_dmaqueue *q, |
132 | u32 count) | 113 | u32 count) |
133 | { | 114 | { |
@@ -557,7 +538,7 @@ int cx25821_buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, | |||
557 | struct cx25821_buffer *buf = | 538 | struct cx25821_buffer *buf = |
558 | container_of(vb, struct cx25821_buffer, vb); | 539 | container_of(vb, struct cx25821_buffer, vb); |
559 | int rc, init_buffer = 0; | 540 | int rc, init_buffer = 0; |
560 | u32 line0_offset, line1_offset; | 541 | u32 line0_offset; |
561 | struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb); | 542 | struct videobuf_dmabuf *dma = videobuf_to_dma(&buf->vb); |
562 | int bpl_local = LINE_SIZE_D1; | 543 | int bpl_local = LINE_SIZE_D1; |
563 | int channel_opened = fh->channel_id; | 544 | int channel_opened = fh->channel_id; |
@@ -639,7 +620,6 @@ int cx25821_buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, | |||
639 | case V4L2_FIELD_INTERLACED: | 620 | case V4L2_FIELD_INTERLACED: |
640 | /* All other formats are top field first */ | 621 | /* All other formats are top field first */ |
641 | line0_offset = 0; | 622 | line0_offset = 0; |
642 | line1_offset = buf->bpl; | ||
643 | dprintk(1, "top field first\n"); | 623 | dprintk(1, "top field first\n"); |
644 | 624 | ||
645 | cx25821_risc_buffer(dev->pci, &buf->risc, | 625 | cx25821_risc_buffer(dev->pci, &buf->risc, |
@@ -1830,7 +1810,6 @@ static long video_ioctl_set(struct file *file, unsigned int cmd, | |||
1830 | int i = 0; | 1810 | int i = 0; |
1831 | int cif_enable = 0; | 1811 | int cif_enable = 0; |
1832 | int cif_width = 0; | 1812 | int cif_width = 0; |
1833 | u32 value = 0; | ||
1834 | 1813 | ||
1835 | data_from_user = (struct downstream_user_struct *)arg; | 1814 | data_from_user = (struct downstream_user_struct *)arg; |
1836 | 1815 | ||
@@ -1914,7 +1893,7 @@ static long video_ioctl_set(struct file *file, unsigned int cmd, | |||
1914 | cx_write(data_from_user->reg_address, data_from_user->reg_data); | 1893 | cx_write(data_from_user->reg_address, data_from_user->reg_data); |
1915 | break; | 1894 | break; |
1916 | case MEDUSA_READ: | 1895 | case MEDUSA_READ: |
1917 | value = cx25821_i2c_read(&dev->i2c_bus[0], | 1896 | cx25821_i2c_read(&dev->i2c_bus[0], |
1918 | (u16) data_from_user->reg_address, | 1897 | (u16) data_from_user->reg_address, |
1919 | &data_from_user->reg_data); | 1898 | &data_from_user->reg_data); |
1920 | break; | 1899 | break; |
diff --git a/drivers/media/video/cx25821/cx25821-video.h b/drivers/media/video/cx25821/cx25821-video.h index d0d9538ca5b3..9652a5e35ba2 100644 --- a/drivers/media/video/cx25821/cx25821-video.h +++ b/drivers/media/video/cx25821/cx25821-video.h | |||
@@ -86,8 +86,6 @@ extern struct cx25821_fmt formats[]; | |||
86 | extern struct cx25821_fmt *cx25821_format_by_fourcc(unsigned int fourcc); | 86 | extern struct cx25821_fmt *cx25821_format_by_fourcc(unsigned int fourcc); |
87 | extern struct cx25821_data timeout_data[MAX_VID_CHANNEL_NUM]; | 87 | extern struct cx25821_data timeout_data[MAX_VID_CHANNEL_NUM]; |
88 | 88 | ||
89 | extern void cx25821_dump_video_queue(struct cx25821_dev *dev, | ||
90 | struct cx25821_dmaqueue *q); | ||
91 | extern void cx25821_video_wakeup(struct cx25821_dev *dev, | 89 | extern void cx25821_video_wakeup(struct cx25821_dev *dev, |
92 | struct cx25821_dmaqueue *q, u32 count); | 90 | struct cx25821_dmaqueue *q, u32 count); |
93 | 91 | ||