diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-08 22:20:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:59 -0400 |
commit | 7e28adb2497f6b873516163e2d29210c11777613 (patch) | |
tree | 2f65ee1bcadb2915f196a277dbac83af99685481 /drivers/media/video/pxa_camera.c | |
parent | e9815ceea9733dfb236629f5b72f2e6486f66242 (diff) |
V4L/DVB (7518): media/video/ replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pxa_camera.c')
-rw-r--r-- | drivers/media/video/pxa_camera.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/video/pxa_camera.c b/drivers/media/video/pxa_camera.c index bef3c9c7902a..936db67a5b0f 100644 --- a/drivers/media/video/pxa_camera.c +++ b/drivers/media/video/pxa_camera.c | |||
@@ -148,7 +148,7 @@ static void free_buffer(struct videobuf_queue *vq, struct pxa_buffer *buf) | |||
148 | 148 | ||
149 | BUG_ON(in_interrupt()); | 149 | BUG_ON(in_interrupt()); |
150 | 150 | ||
151 | dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, | 151 | dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__, |
152 | &buf->vb, buf->vb.baddr, buf->vb.bsize); | 152 | &buf->vb, buf->vb.baddr, buf->vb.bsize); |
153 | 153 | ||
154 | /* This waits until this buffer is out of danger, i.e., until it is no | 154 | /* This waits until this buffer is out of danger, i.e., until it is no |
@@ -175,7 +175,7 @@ static int pxa_videobuf_prepare(struct videobuf_queue *vq, | |||
175 | struct pxa_buffer *buf = container_of(vb, struct pxa_buffer, vb); | 175 | struct pxa_buffer *buf = container_of(vb, struct pxa_buffer, vb); |
176 | int i, ret; | 176 | int i, ret; |
177 | 177 | ||
178 | dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, | 178 | dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__, |
179 | vb, vb->baddr, vb->bsize); | 179 | vb, vb->baddr, vb->bsize); |
180 | 180 | ||
181 | /* Added list head initialization on alloc */ | 181 | /* Added list head initialization on alloc */ |
@@ -281,7 +281,7 @@ static void pxa_videobuf_queue(struct videobuf_queue *vq, | |||
281 | int nents = dma->sglen; | 281 | int nents = dma->sglen; |
282 | unsigned long flags; | 282 | unsigned long flags; |
283 | 283 | ||
284 | dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, | 284 | dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__, |
285 | vb, vb->baddr, vb->bsize); | 285 | vb, vb->baddr, vb->bsize); |
286 | spin_lock_irqsave(&pcdev->lock, flags); | 286 | spin_lock_irqsave(&pcdev->lock, flags); |
287 | 287 | ||
@@ -354,21 +354,21 @@ static void pxa_videobuf_release(struct videobuf_queue *vq, | |||
354 | #ifdef DEBUG | 354 | #ifdef DEBUG |
355 | struct soc_camera_device *icd = vq->priv_data; | 355 | struct soc_camera_device *icd = vq->priv_data; |
356 | 356 | ||
357 | dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, | 357 | dev_dbg(&icd->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__, |
358 | vb, vb->baddr, vb->bsize); | 358 | vb, vb->baddr, vb->bsize); |
359 | 359 | ||
360 | switch (vb->state) { | 360 | switch (vb->state) { |
361 | case VIDEOBUF_ACTIVE: | 361 | case VIDEOBUF_ACTIVE: |
362 | dev_dbg(&icd->dev, "%s (active)\n", __FUNCTION__); | 362 | dev_dbg(&icd->dev, "%s (active)\n", __func__); |
363 | break; | 363 | break; |
364 | case VIDEOBUF_QUEUED: | 364 | case VIDEOBUF_QUEUED: |
365 | dev_dbg(&icd->dev, "%s (queued)\n", __FUNCTION__); | 365 | dev_dbg(&icd->dev, "%s (queued)\n", __func__); |
366 | break; | 366 | break; |
367 | case VIDEOBUF_PREPARED: | 367 | case VIDEOBUF_PREPARED: |
368 | dev_dbg(&icd->dev, "%s (prepared)\n", __FUNCTION__); | 368 | dev_dbg(&icd->dev, "%s (prepared)\n", __func__); |
369 | break; | 369 | break; |
370 | default: | 370 | default: |
371 | dev_dbg(&icd->dev, "%s (unknown)\n", __FUNCTION__); | 371 | dev_dbg(&icd->dev, "%s (unknown)\n", __func__); |
372 | break; | 372 | break; |
373 | } | 373 | } |
374 | #endif | 374 | #endif |
@@ -408,7 +408,7 @@ static void pxa_camera_dma_irq_y(int channel, void *data) | |||
408 | vb = &pcdev->active->vb; | 408 | vb = &pcdev->active->vb; |
409 | buf = container_of(vb, struct pxa_buffer, vb); | 409 | buf = container_of(vb, struct pxa_buffer, vb); |
410 | WARN_ON(buf->inwork || list_empty(&vb->queue)); | 410 | WARN_ON(buf->inwork || list_empty(&vb->queue)); |
411 | dev_dbg(pcdev->dev, "%s (vb=0x%p) 0x%08lx %d\n", __FUNCTION__, | 411 | dev_dbg(pcdev->dev, "%s (vb=0x%p) 0x%08lx %d\n", __func__, |
412 | vb, vb->baddr, vb->bsize); | 412 | vb, vb->baddr, vb->bsize); |
413 | 413 | ||
414 | /* _init is used to debug races, see comment in pxa_camera_reqbufs() */ | 414 | /* _init is used to debug races, see comment in pxa_camera_reqbufs() */ |
@@ -466,18 +466,18 @@ static void pxa_camera_activate(struct pxa_camera_dev *pcdev) | |||
466 | pcdev, pdata); | 466 | pcdev, pdata); |
467 | 467 | ||
468 | if (pdata && pdata->init) { | 468 | if (pdata && pdata->init) { |
469 | dev_dbg(pcdev->dev, "%s: Init gpios\n", __FUNCTION__); | 469 | dev_dbg(pcdev->dev, "%s: Init gpios\n", __func__); |
470 | pdata->init(pcdev->dev); | 470 | pdata->init(pcdev->dev); |
471 | } | 471 | } |
472 | 472 | ||
473 | if (pdata && pdata->power) { | 473 | if (pdata && pdata->power) { |
474 | dev_dbg(pcdev->dev, "%s: Power on camera\n", __FUNCTION__); | 474 | dev_dbg(pcdev->dev, "%s: Power on camera\n", __func__); |
475 | pdata->power(pcdev->dev, 1); | 475 | pdata->power(pcdev->dev, 1); |
476 | } | 476 | } |
477 | 477 | ||
478 | if (pdata && pdata->reset) { | 478 | if (pdata && pdata->reset) { |
479 | dev_dbg(pcdev->dev, "%s: Releasing camera reset\n", | 479 | dev_dbg(pcdev->dev, "%s: Releasing camera reset\n", |
480 | __FUNCTION__); | 480 | __func__); |
481 | pdata->reset(pcdev->dev, 1); | 481 | pdata->reset(pcdev->dev, 1); |
482 | } | 482 | } |
483 | 483 | ||
@@ -507,12 +507,12 @@ static void pxa_camera_deactivate(struct pxa_camera_dev *pcdev) | |||
507 | 507 | ||
508 | if (board && board->reset) { | 508 | if (board && board->reset) { |
509 | dev_dbg(pcdev->dev, "%s: Asserting camera reset\n", | 509 | dev_dbg(pcdev->dev, "%s: Asserting camera reset\n", |
510 | __FUNCTION__); | 510 | __func__); |
511 | board->reset(pcdev->dev, 0); | 511 | board->reset(pcdev->dev, 0); |
512 | } | 512 | } |
513 | 513 | ||
514 | if (board && board->power) { | 514 | if (board && board->power) { |
515 | dev_dbg(pcdev->dev, "%s: Power off camera\n", __FUNCTION__); | 515 | dev_dbg(pcdev->dev, "%s: Power off camera\n", __func__); |
516 | board->power(pcdev->dev, 0); | 516 | board->power(pcdev->dev, 0); |
517 | } | 517 | } |
518 | } | 518 | } |