aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/vivi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/vivi.c')
-rw-r--r--drivers/media/video/vivi.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
index 8353deb8a1d4..17eb3ec5d704 100644
--- a/drivers/media/video/vivi.c
+++ b/drivers/media/video/vivi.c
@@ -426,7 +426,7 @@ static void vivi_sleep(struct vivi_fh *fh)
426 int timeout; 426 int timeout;
427 DECLARE_WAITQUEUE(wait, current); 427 DECLARE_WAITQUEUE(wait, current);
428 428
429 dprintk(dev, 1, "%s dma_q=0x%08lx\n", __FUNCTION__, 429 dprintk(dev, 1, "%s dma_q=0x%08lx\n", __func__,
430 (unsigned long)dma_q); 430 (unsigned long)dma_q);
431 431
432 add_wait_queue(&dma_q->wq, &wait); 432 add_wait_queue(&dma_q->wq, &wait);
@@ -472,7 +472,7 @@ static int vivi_start_thread(struct vivi_fh *fh)
472 dma_q->frame = 0; 472 dma_q->frame = 0;
473 dma_q->ini_jiffies = jiffies; 473 dma_q->ini_jiffies = jiffies;
474 474
475 dprintk(dev, 1, "%s\n", __FUNCTION__); 475 dprintk(dev, 1, "%s\n", __func__);
476 476
477 dma_q->kthread = kthread_run(vivi_thread, fh, "vivi"); 477 dma_q->kthread = kthread_run(vivi_thread, fh, "vivi");
478 478
@@ -483,7 +483,7 @@ static int vivi_start_thread(struct vivi_fh *fh)
483 /* Wakes thread */ 483 /* Wakes thread */
484 wake_up_interruptible(&dma_q->wq); 484 wake_up_interruptible(&dma_q->wq);
485 485
486 dprintk(dev, 1, "returning from %s\n", __FUNCTION__); 486 dprintk(dev, 1, "returning from %s\n", __func__);
487 return 0; 487 return 0;
488} 488}
489 489
@@ -491,7 +491,7 @@ static void vivi_stop_thread(struct vivi_dmaqueue *dma_q)
491{ 491{
492 struct vivi_dev *dev = container_of(dma_q, struct vivi_dev, vidq); 492 struct vivi_dev *dev = container_of(dma_q, struct vivi_dev, vidq);
493 493
494 dprintk(dev, 1, "%s\n", __FUNCTION__); 494 dprintk(dev, 1, "%s\n", __func__);
495 /* shutdown control thread */ 495 /* shutdown control thread */
496 if (dma_q->kthread) { 496 if (dma_q->kthread) {
497 kthread_stop(dma_q->kthread); 497 kthread_stop(dma_q->kthread);
@@ -516,7 +516,7 @@ buffer_setup(struct videobuf_queue *vq, unsigned int *count, unsigned int *size)
516 while (*size * *count > vid_limit * 1024 * 1024) 516 while (*size * *count > vid_limit * 1024 * 1024)
517 (*count)--; 517 (*count)--;
518 518
519 dprintk(dev, 1, "%s, count=%d, size=%d\n", __FUNCTION__, 519 dprintk(dev, 1, "%s, count=%d, size=%d\n", __func__,
520 *count, *size); 520 *count, *size);
521 521
522 return 0; 522 return 0;
@@ -527,7 +527,7 @@ static void free_buffer(struct videobuf_queue *vq, struct vivi_buffer *buf)
527 struct vivi_fh *fh = vq->priv_data; 527 struct vivi_fh *fh = vq->priv_data;
528 struct vivi_dev *dev = fh->dev; 528 struct vivi_dev *dev = fh->dev;
529 529
530 dprintk(dev, 1, "%s, state: %i\n", __FUNCTION__, buf->vb.state); 530 dprintk(dev, 1, "%s, state: %i\n", __func__, buf->vb.state);
531 531
532 if (in_interrupt()) 532 if (in_interrupt())
533 BUG(); 533 BUG();
@@ -548,7 +548,7 @@ buffer_prepare(struct videobuf_queue *vq, struct videobuf_buffer *vb,
548 struct vivi_buffer *buf = container_of(vb, struct vivi_buffer, vb); 548 struct vivi_buffer *buf = container_of(vb, struct vivi_buffer, vb);
549 int rc; 549 int rc;
550 550
551 dprintk(dev, 1, "%s, field=%d\n", __FUNCTION__, field); 551 dprintk(dev, 1, "%s, field=%d\n", __func__, field);
552 552
553 BUG_ON(NULL == fh->fmt); 553 BUG_ON(NULL == fh->fmt);
554 554
@@ -589,7 +589,7 @@ buffer_queue(struct videobuf_queue *vq, struct videobuf_buffer *vb)
589 struct vivi_dev *dev = fh->dev; 589 struct vivi_dev *dev = fh->dev;
590 struct vivi_dmaqueue *vidq = &dev->vidq; 590 struct vivi_dmaqueue *vidq = &dev->vidq;
591 591
592 dprintk(dev, 1, "%s\n", __FUNCTION__); 592 dprintk(dev, 1, "%s\n", __func__);
593 593
594 buf->vb.state = VIDEOBUF_QUEUED; 594 buf->vb.state = VIDEOBUF_QUEUED;
595 list_add_tail(&buf->vb.queue, &vidq->active); 595 list_add_tail(&buf->vb.queue, &vidq->active);
@@ -602,7 +602,7 @@ static void buffer_release(struct videobuf_queue *vq,
602 struct vivi_fh *fh = vq->priv_data; 602 struct vivi_fh *fh = vq->priv_data;
603 struct vivi_dev *dev = (struct vivi_dev *)fh->dev; 603 struct vivi_dev *dev = (struct vivi_dev *)fh->dev;
604 604
605 dprintk(dev, 1, "%s\n", __FUNCTION__); 605 dprintk(dev, 1, "%s\n", __func__);
606 606
607 free_buffer(vq, buf); 607 free_buffer(vq, buf);
608} 608}
@@ -718,7 +718,7 @@ static int vidioc_s_fmt_cap(struct file *file, void *priv,
718 mutex_lock(&q->vb_lock); 718 mutex_lock(&q->vb_lock);
719 719
720 if (videobuf_queue_is_busy(&fh->vb_vidq)) { 720 if (videobuf_queue_is_busy(&fh->vb_vidq)) {
721 dprintk(fh->dev, 1, "%s queue busy\n", __FUNCTION__); 721 dprintk(fh->dev, 1, "%s queue busy\n", __func__);
722 ret = -EBUSY; 722 ret = -EBUSY;
723 goto out; 723 goto out;
724 } 724 }
@@ -974,7 +974,7 @@ vivi_poll(struct file *file, struct poll_table_struct *wait)
974 struct vivi_dev *dev = fh->dev; 974 struct vivi_dev *dev = fh->dev;
975 struct videobuf_queue *q = &fh->vb_vidq; 975 struct videobuf_queue *q = &fh->vb_vidq;
976 976
977 dprintk(dev, 1, "%s\n", __FUNCTION__); 977 dprintk(dev, 1, "%s\n", __func__);
978 978
979 if (V4L2_BUF_TYPE_VIDEO_CAPTURE != fh->type) 979 if (V4L2_BUF_TYPE_VIDEO_CAPTURE != fh->type)
980 return POLLERR; 980 return POLLERR;