aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-08 22:20:00 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:59 -0400
commit32d83efc1c9e290b3d4627c6ec40529eafa89b46 (patch)
tree8eeeaa783d50984fe038729afd9d243f94921ff7 /drivers/media/video
parent22b4e64f0a119e94090ef45285a5c311f1f6855f (diff)
V4L/DVB (7521): media/video/cx88 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')
-rw-r--r--drivers/media/video/cx88/cx88-alsa.c2
-rw-r--r--drivers/media/video/cx88/cx88-blackbird.c8
-rw-r--r--drivers/media/video/cx88/cx88-core.c4
-rw-r--r--drivers/media/video/cx88/cx88-dvb.c14
-rw-r--r--drivers/media/video/cx88/cx88-mpeg.c16
-rw-r--r--drivers/media/video/cx88/cx88-tvaudio.c24
6 files changed, 34 insertions, 34 deletions
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c
index 2f5a4a4ba407..87c751a9a431 100644
--- a/drivers/media/video/cx88/cx88-alsa.c
+++ b/drivers/media/video/cx88/cx88-alsa.c
@@ -494,7 +494,7 @@ static snd_pcm_uframes_t snd_cx88_pointer(struct snd_pcm_substream *substream)
494 494
495 count = atomic_read(&chip->count); 495 count = atomic_read(&chip->count);
496 496
497// dprintk(2, "%s - count %d (+%u), period %d, frame %lu\n", __FUNCTION__, 497// dprintk(2, "%s - count %d (+%u), period %d, frame %lu\n", __func__,
498// count, new, count & (runtime->periods-1), 498// count, new, count & (runtime->periods-1),
499// runtime->period_size * (count & (runtime->periods-1))); 499// runtime->period_size * (count & (runtime->periods-1)));
500 return runtime->period_size * (count & (runtime->periods-1)); 500 return runtime->period_size * (count & (runtime->periods-1));
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c
index 8d54e7a90dc7..61c4f72644b8 100644
--- a/drivers/media/video/cx88/cx88-blackbird.c
+++ b/drivers/media/video/cx88/cx88-blackbird.c
@@ -314,7 +314,7 @@ static int blackbird_mbox_func(void *priv, u32 command, int in, int out, u32 dat
314 u32 value, flag, retval; 314 u32 value, flag, retval;
315 int i; 315 int i;
316 316
317 dprintk(1,"%s: 0x%X\n", __FUNCTION__, command); 317 dprintk(1,"%s: 0x%X\n", __func__, command);
318 318
319 /* this may not be 100% safe if we can't read any memory location 319 /* this may not be 100% safe if we can't read any memory location
320 without side effects */ 320 without side effects */
@@ -1055,7 +1055,7 @@ static int mpeg_open(struct inode *inode, struct file *file)
1055 1055
1056 dev = cx8802_get_device(inode); 1056 dev = cx8802_get_device(inode);
1057 1057
1058 dprintk( 1, "%s\n", __FUNCTION__); 1058 dprintk( 1, "%s\n", __func__);
1059 1059
1060 if (dev == NULL) 1060 if (dev == NULL)
1061 return -ENODEV; 1061 return -ENODEV;
@@ -1065,7 +1065,7 @@ static int mpeg_open(struct inode *inode, struct file *file)
1065 if (drv) { 1065 if (drv) {
1066 err = drv->request_acquire(drv); 1066 err = drv->request_acquire(drv);
1067 if(err != 0) { 1067 if(err != 0) {
1068 dprintk(1,"%s: Unable to acquire hardware, %d\n", __FUNCTION__, err); 1068 dprintk(1,"%s: Unable to acquire hardware, %d\n", __func__, err);
1069 return err; 1069 return err;
1070 } 1070 }
1071 } 1071 }
@@ -1284,7 +1284,7 @@ static int cx8802_blackbird_probe(struct cx8802_driver *drv)
1284 struct cx8802_dev *dev = core->dvbdev; 1284 struct cx8802_dev *dev = core->dvbdev;
1285 int err; 1285 int err;
1286 1286
1287 dprintk( 1, "%s\n", __FUNCTION__); 1287 dprintk( 1, "%s\n", __func__);
1288 dprintk( 1, " ->being probed by Card=%d Name=%s, PCI %02x:%02x\n", 1288 dprintk( 1, " ->being probed by Card=%d Name=%s, PCI %02x:%02x\n",
1289 core->boardnr, 1289 core->boardnr,
1290 core->name, 1290 core->name,
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c
index 6039a8f57b48..c4d1aff1fdb4 100644
--- a/drivers/media/video/cx88/cx88-core.c
+++ b/drivers/media/video/cx88/cx88-core.c
@@ -548,7 +548,7 @@ void cx88_wakeup(struct cx88_core *core,
548 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT); 548 mod_timer(&q->timeout, jiffies+BUFFER_TIMEOUT);
549 } 549 }
550 if (bc != 1) 550 if (bc != 1)
551 printk("%s: %d buffers handled (should be 1)\n",__FUNCTION__,bc); 551 printk("%s: %d buffers handled (should be 1)\n",__func__,bc);
552} 552}
553 553
554void cx88_shutdown(struct cx88_core *core) 554void cx88_shutdown(struct cx88_core *core)
@@ -577,7 +577,7 @@ void cx88_shutdown(struct cx88_core *core)
577 577
578int cx88_reset(struct cx88_core *core) 578int cx88_reset(struct cx88_core *core)
579{ 579{
580 dprintk(1,"%s\n",__FUNCTION__); 580 dprintk(1,"%s\n",__func__);
581 cx88_shutdown(core); 581 cx88_shutdown(core);
582 582
583 /* clear irq status */ 583 /* clear irq status */
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index 5e7c7fdb38ae..8fc929eb47ba 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -282,7 +282,7 @@ static int lgdt330x_pll_rf_set(struct dvb_frontend* fe, int index)
282 struct cx8802_dev *dev= fe->dvb->priv; 282 struct cx8802_dev *dev= fe->dvb->priv;
283 struct cx88_core *core = dev->core; 283 struct cx88_core *core = dev->core;
284 284
285 dprintk(1, "%s: index = %d\n", __FUNCTION__, index); 285 dprintk(1, "%s: index = %d\n", __func__, index);
286 if (index == 0) 286 if (index == 0)
287 cx_clear(MO_GP0_IO, 8); 287 cx_clear(MO_GP0_IO, 8);
288 else 288 else
@@ -380,7 +380,7 @@ static int cx88_pci_nano_callback(void *ptr, int command, int arg)
380 switch (command) { 380 switch (command) {
381 case XC2028_TUNER_RESET: 381 case XC2028_TUNER_RESET:
382 /* Send the tuner in then out of reset */ 382 /* Send the tuner in then out of reset */
383 dprintk(1, "%s: XC2028_TUNER_RESET %d\n", __FUNCTION__, arg); 383 dprintk(1, "%s: XC2028_TUNER_RESET %d\n", __func__, arg);
384 384
385 switch (core->boardnr) { 385 switch (core->boardnr) {
386 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO: 386 case CX88_BOARD_DVICO_FUSIONHDTV_5_PCI_NANO:
@@ -396,10 +396,10 @@ static int cx88_pci_nano_callback(void *ptr, int command, int arg)
396 396
397 break; 397 break;
398 case XC2028_RESET_CLK: 398 case XC2028_RESET_CLK:
399 dprintk(1, "%s: XC2028_RESET_CLK %d\n", __FUNCTION__, arg); 399 dprintk(1, "%s: XC2028_RESET_CLK %d\n", __func__, arg);
400 break; 400 break;
401 default: 401 default:
402 dprintk(1, "%s: unknown command %d, arg %d\n", __FUNCTION__, 402 dprintk(1, "%s: unknown command %d, arg %d\n", __func__,
403 command, arg); 403 command, arg);
404 return -EINVAL; 404 return -EINVAL;
405 } 405 }
@@ -872,7 +872,7 @@ static int cx8802_dvb_advise_acquire(struct cx8802_driver *drv)
872{ 872{
873 struct cx88_core *core = drv->core; 873 struct cx88_core *core = drv->core;
874 int err = 0; 874 int err = 0;
875 dprintk( 1, "%s\n", __FUNCTION__); 875 dprintk( 1, "%s\n", __func__);
876 876
877 switch (core->boardnr) { 877 switch (core->boardnr) {
878 case CX88_BOARD_HAUPPAUGE_HVR1300: 878 case CX88_BOARD_HAUPPAUGE_HVR1300:
@@ -895,7 +895,7 @@ static int cx8802_dvb_advise_release(struct cx8802_driver *drv)
895{ 895{
896 struct cx88_core *core = drv->core; 896 struct cx88_core *core = drv->core;
897 int err = 0; 897 int err = 0;
898 dprintk( 1, "%s\n", __FUNCTION__); 898 dprintk( 1, "%s\n", __func__);
899 899
900 switch (core->boardnr) { 900 switch (core->boardnr) {
901 case CX88_BOARD_HAUPPAUGE_HVR1300: 901 case CX88_BOARD_HAUPPAUGE_HVR1300:
@@ -913,7 +913,7 @@ static int cx8802_dvb_probe(struct cx8802_driver *drv)
913 struct cx8802_dev *dev = drv->core->dvbdev; 913 struct cx8802_dev *dev = drv->core->dvbdev;
914 int err; 914 int err;
915 915
916 dprintk( 1, "%s\n", __FUNCTION__); 916 dprintk( 1, "%s\n", __func__);
917 dprintk( 1, " ->being probed by Card=%d Name=%s, PCI %02x:%02x\n", 917 dprintk( 1, " ->being probed by Card=%d Name=%s, PCI %02x:%02x\n",
918 core->boardnr, 918 core->boardnr,
919 core->name, 919 core->name,
diff --git a/drivers/media/video/cx88/cx88-mpeg.c b/drivers/media/video/cx88/cx88-mpeg.c
index 6467ca336142..a6b061c2644a 100644
--- a/drivers/media/video/cx88/cx88-mpeg.c
+++ b/drivers/media/video/cx88/cx88-mpeg.c
@@ -146,7 +146,7 @@ static int cx8802_start_dma(struct cx8802_dev *dev,
146 cx_write(TS_GEN_CNTRL, 0x06); /* punctured clock TS & posedge driven */ 146 cx_write(TS_GEN_CNTRL, 0x06); /* punctured clock TS & posedge driven */
147 udelay(100); 147 udelay(100);
148 } else { 148 } else {
149 printk( "%s() Failed. Unsupported value in .mpeg (0x%08x)\n", __FUNCTION__, 149 printk( "%s() Failed. Unsupported value in .mpeg (0x%08x)\n", __func__,
150 core->board.mpeg ); 150 core->board.mpeg );
151 return -EINVAL; 151 return -EINVAL;
152 } 152 }
@@ -247,7 +247,7 @@ int cx8802_buf_prepare(struct videobuf_queue *q, struct cx8802_dev *dev,
247 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb); 247 struct videobuf_dmabuf *dma=videobuf_to_dma(&buf->vb);
248 int rc; 248 int rc;
249 249
250 dprintk(1, "%s: %p\n", __FUNCTION__, buf); 250 dprintk(1, "%s: %p\n", __func__, buf);
251 if (0 != buf->vb.baddr && buf->vb.bsize < size) 251 if (0 != buf->vb.baddr && buf->vb.bsize < size)
252 return -EINVAL; 252 return -EINVAL;
253 253
@@ -289,7 +289,7 @@ void cx8802_buf_queue(struct cx8802_dev *dev, struct cx88_buffer *buf)
289 buf->count = cx88q->count++; 289 buf->count = cx88q->count++;
290 mod_timer(&cx88q->timeout, jiffies+BUFFER_TIMEOUT); 290 mod_timer(&cx88q->timeout, jiffies+BUFFER_TIMEOUT);
291 dprintk(1,"[%p/%d] %s - first active\n", 291 dprintk(1,"[%p/%d] %s - first active\n",
292 buf, buf->vb.i, __FUNCTION__); 292 buf, buf->vb.i, __func__);
293 293
294 } else { 294 } else {
295 dprintk( 1, "queue is not empty - append to active\n" ); 295 dprintk( 1, "queue is not empty - append to active\n" );
@@ -299,7 +299,7 @@ void cx8802_buf_queue(struct cx8802_dev *dev, struct cx88_buffer *buf)
299 buf->count = cx88q->count++; 299 buf->count = cx88q->count++;
300 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma); 300 prev->risc.jmp[1] = cpu_to_le32(buf->risc.dma);
301 dprintk( 1, "[%p/%d] %s - append to active\n", 301 dprintk( 1, "[%p/%d] %s - append to active\n",
302 buf, buf->vb.i, __FUNCTION__); 302 buf, buf->vb.i, __func__);
303 } 303 }
304} 304}
305 305
@@ -342,7 +342,7 @@ static void cx8802_timeout(unsigned long data)
342{ 342{
343 struct cx8802_dev *dev = (struct cx8802_dev*)data; 343 struct cx8802_dev *dev = (struct cx8802_dev*)data;
344 344
345 dprintk(1, "%s\n",__FUNCTION__); 345 dprintk(1, "%s\n",__func__);
346 346
347 if (debug) 347 if (debug)
348 cx88_sram_channel_dump(dev->core, &cx88_sram_channels[SRAM_CH28]); 348 cx88_sram_channel_dump(dev->core, &cx88_sram_channels[SRAM_CH28]);
@@ -625,7 +625,7 @@ static int cx8802_request_acquire(struct cx8802_driver *drv)
625 } 625 }
626 mutex_unlock(&drv->core->lock); 626 mutex_unlock(&drv->core->lock);
627 627
628 mpeg_dbg(1,"%s() Post acquire GPIO=%x\n", __FUNCTION__, cx_read(MO_GP0_IO)); 628 mpeg_dbg(1,"%s() Post acquire GPIO=%x\n", __func__, cx_read(MO_GP0_IO));
629 } 629 }
630 630
631 return 0; 631 return 0;
@@ -641,7 +641,7 @@ static int cx8802_request_release(struct cx8802_driver *drv)
641 { 641 {
642 drv->advise_release(drv); 642 drv->advise_release(drv);
643 core->active_type_id = CX88_BOARD_NONE; 643 core->active_type_id = CX88_BOARD_NONE;
644 mpeg_dbg(1,"%s() Post release GPIO=%x\n", __FUNCTION__, cx_read(MO_GP0_IO)); 644 mpeg_dbg(1,"%s() Post release GPIO=%x\n", __func__, cx_read(MO_GP0_IO));
645 } 645 }
646 mutex_unlock(&drv->core->lock); 646 mutex_unlock(&drv->core->lock);
647 647
@@ -815,7 +815,7 @@ static void __devexit cx8802_remove(struct pci_dev *pci_dev)
815 815
816 dev = pci_get_drvdata(pci_dev); 816 dev = pci_get_drvdata(pci_dev);
817 817
818 dprintk( 1, "%s\n", __FUNCTION__); 818 dprintk( 1, "%s\n", __func__);
819 819
820 if (!list_empty(&dev->drvlist)) { 820 if (!list_empty(&dev->drvlist)) {
821 struct cx8802_driver *drv, *tmp; 821 struct cx8802_driver *drv, *tmp;
diff --git a/drivers/media/video/cx88/cx88-tvaudio.c b/drivers/media/video/cx88/cx88-tvaudio.c
index c574f450498f..3a1977f41e27 100644
--- a/drivers/media/video/cx88/cx88-tvaudio.c
+++ b/drivers/media/video/cx88/cx88-tvaudio.c
@@ -265,12 +265,12 @@ static void set_audio_standard_BTSC(struct cx88_core *core, unsigned int sap,
265 mode |= EN_FMRADIO_EN_RDS; 265 mode |= EN_FMRADIO_EN_RDS;
266 266
267 if (sap) { 267 if (sap) {
268 dprintk("%s SAP (status: unknown)\n", __FUNCTION__); 268 dprintk("%s SAP (status: unknown)\n", __func__);
269 set_audio_start(core, SEL_SAP); 269 set_audio_start(core, SEL_SAP);
270 set_audio_registers(core, btsc_sap); 270 set_audio_registers(core, btsc_sap);
271 set_audio_finish(core, mode); 271 set_audio_finish(core, mode);
272 } else { 272 } else {
273 dprintk("%s (status: known-good)\n", __FUNCTION__); 273 dprintk("%s (status: known-good)\n", __func__);
274 set_audio_start(core, SEL_BTSC); 274 set_audio_start(core, SEL_BTSC);
275 set_audio_registers(core, btsc); 275 set_audio_registers(core, btsc);
276 set_audio_finish(core, mode); 276 set_audio_finish(core, mode);
@@ -351,16 +351,16 @@ static void set_audio_standard_NICAM(struct cx88_core *core, u32 mode)
351 set_audio_start(core,SEL_NICAM); 351 set_audio_start(core,SEL_NICAM);
352 switch (core->tvaudio) { 352 switch (core->tvaudio) {
353 case WW_L: 353 case WW_L:
354 dprintk("%s SECAM-L NICAM (status: devel)\n", __FUNCTION__); 354 dprintk("%s SECAM-L NICAM (status: devel)\n", __func__);
355 set_audio_registers(core, nicam_l); 355 set_audio_registers(core, nicam_l);
356 break; 356 break;
357 case WW_I: 357 case WW_I:
358 dprintk("%s PAL-I NICAM (status: known-good)\n", __FUNCTION__); 358 dprintk("%s PAL-I NICAM (status: known-good)\n", __func__);
359 set_audio_registers(core, nicam_bgdki_common); 359 set_audio_registers(core, nicam_bgdki_common);
360 set_audio_registers(core, nicam_i); 360 set_audio_registers(core, nicam_i);
361 break; 361 break;
362 default: 362 default:
363 dprintk("%s PAL-BGDK NICAM (status: known-good)\n", __FUNCTION__); 363 dprintk("%s PAL-BGDK NICAM (status: known-good)\n", __func__);
364 set_audio_registers(core, nicam_bgdki_common); 364 set_audio_registers(core, nicam_bgdki_common);
365 set_audio_registers(core, nicam_default); 365 set_audio_registers(core, nicam_default);
366 break; 366 break;
@@ -600,28 +600,28 @@ static void set_audio_standard_A2(struct cx88_core *core, u32 mode)
600 set_audio_start(core, SEL_A2); 600 set_audio_start(core, SEL_A2);
601 switch (core->tvaudio) { 601 switch (core->tvaudio) {
602 case WW_BG: 602 case WW_BG:
603 dprintk("%s PAL-BG A1/2 (status: known-good)\n", __FUNCTION__); 603 dprintk("%s PAL-BG A1/2 (status: known-good)\n", __func__);
604 set_audio_registers(core, a2_bgdk_common); 604 set_audio_registers(core, a2_bgdk_common);
605 set_audio_registers(core, a2_bg); 605 set_audio_registers(core, a2_bg);
606 set_audio_registers(core, a2_deemph50); 606 set_audio_registers(core, a2_deemph50);
607 break; 607 break;
608 case WW_DK: 608 case WW_DK:
609 dprintk("%s PAL-DK A1/2 (status: known-good)\n", __FUNCTION__); 609 dprintk("%s PAL-DK A1/2 (status: known-good)\n", __func__);
610 set_audio_registers(core, a2_bgdk_common); 610 set_audio_registers(core, a2_bgdk_common);
611 set_audio_registers(core, a2_dk); 611 set_audio_registers(core, a2_dk);
612 set_audio_registers(core, a2_deemph50); 612 set_audio_registers(core, a2_deemph50);
613 break; 613 break;
614 case WW_I: 614 case WW_I:
615 dprintk("%s PAL-I A1 (status: known-good)\n", __FUNCTION__); 615 dprintk("%s PAL-I A1 (status: known-good)\n", __func__);
616 set_audio_registers(core, a1_i); 616 set_audio_registers(core, a1_i);
617 set_audio_registers(core, a2_deemph50); 617 set_audio_registers(core, a2_deemph50);
618 break; 618 break;
619 case WW_L: 619 case WW_L:
620 dprintk("%s AM-L (status: devel)\n", __FUNCTION__); 620 dprintk("%s AM-L (status: devel)\n", __func__);
621 set_audio_registers(core, am_l); 621 set_audio_registers(core, am_l);
622 break; 622 break;
623 default: 623 default:
624 dprintk("%s Warning: wrong value\n", __FUNCTION__); 624 dprintk("%s Warning: wrong value\n", __func__);
625 return; 625 return;
626 break; 626 break;
627 }; 627 };
@@ -637,7 +637,7 @@ static void set_audio_standard_EIAJ(struct cx88_core *core)
637 637
638 { /* end of list */ }, 638 { /* end of list */ },
639 }; 639 };
640 dprintk("%s (status: unknown)\n", __FUNCTION__); 640 dprintk("%s (status: unknown)\n", __func__);
641 641
642 set_audio_start(core, SEL_EIAJ); 642 set_audio_start(core, SEL_EIAJ);
643 set_audio_registers(core, eiaj); 643 set_audio_registers(core, eiaj);
@@ -691,7 +691,7 @@ static void set_audio_standard_FM(struct cx88_core *core,
691 { /* end of list */ }, 691 { /* end of list */ },
692 }; 692 };
693 693
694 dprintk("%s (status: unknown)\n", __FUNCTION__); 694 dprintk("%s (status: unknown)\n", __func__);
695 set_audio_start(core, SEL_FMRADIO); 695 set_audio_start(core, SEL_FMRADIO);
696 696
697 switch (deemph) { 697 switch (deemph) {