aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/s5h1409.c
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:58 -0400
commit271ddbf702c3a4e6b18f6464180eda0f62efd9a5 (patch)
tree37a384a4ce6216c694ee0d86ffc89d4aa56944e1 /drivers/media/dvb/frontends/s5h1409.c
parent708bebdd3922c6f346b8540f93c73f006d2b947b (diff)
V4L/DVB (7514): media/dvb/frontends replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Acked-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/s5h1409.c')
-rw-r--r--drivers/media/dvb/frontends/s5h1409.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/drivers/media/dvb/frontends/s5h1409.c b/drivers/media/dvb/frontends/s5h1409.c
index 1ca250378664..b999ec424ff7 100644
--- a/drivers/media/dvb/frontends/s5h1409.c
+++ b/drivers/media/dvb/frontends/s5h1409.c
@@ -312,7 +312,7 @@ static int s5h1409_writereg(struct s5h1409_state* state, u8 reg, u16 data)
312 312
313 if (ret != 1) 313 if (ret != 1)
314 printk("%s: writereg error (reg == 0x%02x, val == 0x%04x, " 314 printk("%s: writereg error (reg == 0x%02x, val == 0x%04x, "
315 "ret == %i)\n", __FUNCTION__, reg, data, ret); 315 "ret == %i)\n", __func__, reg, data, ret);
316 316
317 return (ret != 1) ? -1 : 0; 317 return (ret != 1) ? -1 : 0;
318} 318}
@@ -332,7 +332,7 @@ static u16 s5h1409_readreg(struct s5h1409_state* state, u8 reg)
332 ret = i2c_transfer(state->i2c, msg, 2); 332 ret = i2c_transfer(state->i2c, msg, 2);
333 333
334 if (ret != 2) 334 if (ret != 2)
335 printk("%s: readreg error (ret == %i)\n", __FUNCTION__, ret); 335 printk("%s: readreg error (ret == %i)\n", __func__, ret);
336 return (b1[0] << 8) | b1[1]; 336 return (b1[0] << 8) | b1[1];
337} 337}
338 338
@@ -340,7 +340,7 @@ static int s5h1409_softreset(struct dvb_frontend* fe)
340{ 340{
341 struct s5h1409_state* state = fe->demodulator_priv; 341 struct s5h1409_state* state = fe->demodulator_priv;
342 342
343 dprintk("%s()\n", __FUNCTION__); 343 dprintk("%s()\n", __func__);
344 344
345 s5h1409_writereg(state, 0xf5, 0); 345 s5h1409_writereg(state, 0xf5, 0);
346 s5h1409_writereg(state, 0xf5, 1); 346 s5h1409_writereg(state, 0xf5, 1);
@@ -356,7 +356,7 @@ static int s5h1409_set_if_freq(struct dvb_frontend* fe, int KHz)
356{ 356{
357 struct s5h1409_state* state = fe->demodulator_priv; 357 struct s5h1409_state* state = fe->demodulator_priv;
358 358
359 dprintk("%s(%d KHz)\n", __FUNCTION__, KHz); 359 dprintk("%s(%d KHz)\n", __func__, KHz);
360 360
361 switch (KHz) { 361 switch (KHz) {
362 case 4000: 362 case 4000:
@@ -381,7 +381,7 @@ static int s5h1409_set_spectralinversion(struct dvb_frontend* fe, int inverted)
381{ 381{
382 struct s5h1409_state* state = fe->demodulator_priv; 382 struct s5h1409_state* state = fe->demodulator_priv;
383 383
384 dprintk("%s(%d)\n", __FUNCTION__, inverted); 384 dprintk("%s(%d)\n", __func__, inverted);
385 385
386 if(inverted == 1) 386 if(inverted == 1)
387 return s5h1409_writereg(state, 0x1b, 0x1101); /* Inverted */ 387 return s5h1409_writereg(state, 0x1b, 0x1101); /* Inverted */
@@ -394,25 +394,25 @@ static int s5h1409_enable_modulation(struct dvb_frontend* fe,
394{ 394{
395 struct s5h1409_state* state = fe->demodulator_priv; 395 struct s5h1409_state* state = fe->demodulator_priv;
396 396
397 dprintk("%s(0x%08x)\n", __FUNCTION__, m); 397 dprintk("%s(0x%08x)\n", __func__, m);
398 398
399 switch(m) { 399 switch(m) {
400 case VSB_8: 400 case VSB_8:
401 dprintk("%s() VSB_8\n", __FUNCTION__); 401 dprintk("%s() VSB_8\n", __func__);
402 if (state->if_freq != S5H1409_VSB_IF_FREQ) 402 if (state->if_freq != S5H1409_VSB_IF_FREQ)
403 s5h1409_set_if_freq(fe, S5H1409_VSB_IF_FREQ); 403 s5h1409_set_if_freq(fe, S5H1409_VSB_IF_FREQ);
404 s5h1409_writereg(state, 0xf4, 0); 404 s5h1409_writereg(state, 0xf4, 0);
405 break; 405 break;
406 case QAM_64: 406 case QAM_64:
407 case QAM_256: 407 case QAM_256:
408 dprintk("%s() QAM_AUTO (64/256)\n", __FUNCTION__); 408 dprintk("%s() QAM_AUTO (64/256)\n", __func__);
409 if (state->if_freq != S5H1409_QAM_IF_FREQ) 409 if (state->if_freq != S5H1409_QAM_IF_FREQ)
410 s5h1409_set_if_freq(fe, S5H1409_QAM_IF_FREQ); 410 s5h1409_set_if_freq(fe, S5H1409_QAM_IF_FREQ);
411 s5h1409_writereg(state, 0xf4, 1); 411 s5h1409_writereg(state, 0xf4, 1);
412 s5h1409_writereg(state, 0x85, 0x110); 412 s5h1409_writereg(state, 0x85, 0x110);
413 break; 413 break;
414 default: 414 default:
415 dprintk("%s() Invalid modulation\n", __FUNCTION__); 415 dprintk("%s() Invalid modulation\n", __func__);
416 return -EINVAL; 416 return -EINVAL;
417 } 417 }
418 418
@@ -426,7 +426,7 @@ static int s5h1409_i2c_gate_ctrl(struct dvb_frontend* fe, int enable)
426{ 426{
427 struct s5h1409_state* state = fe->demodulator_priv; 427 struct s5h1409_state* state = fe->demodulator_priv;
428 428
429 dprintk("%s(%d)\n", __FUNCTION__, enable); 429 dprintk("%s(%d)\n", __func__, enable);
430 430
431 if (enable) 431 if (enable)
432 return s5h1409_writereg(state, 0xf3, 1); 432 return s5h1409_writereg(state, 0xf3, 1);
@@ -438,7 +438,7 @@ static int s5h1409_set_gpio(struct dvb_frontend* fe, int enable)
438{ 438{
439 struct s5h1409_state* state = fe->demodulator_priv; 439 struct s5h1409_state* state = fe->demodulator_priv;
440 440
441 dprintk("%s(%d)\n", __FUNCTION__, enable); 441 dprintk("%s(%d)\n", __func__, enable);
442 442
443 if (enable) 443 if (enable)
444 return s5h1409_writereg(state, 0xe3, 444 return s5h1409_writereg(state, 0xe3,
@@ -452,7 +452,7 @@ static int s5h1409_sleep(struct dvb_frontend* fe, int enable)
452{ 452{
453 struct s5h1409_state* state = fe->demodulator_priv; 453 struct s5h1409_state* state = fe->demodulator_priv;
454 454
455 dprintk("%s(%d)\n", __FUNCTION__, enable); 455 dprintk("%s(%d)\n", __func__, enable);
456 456
457 return s5h1409_writereg(state, 0xf2, enable); 457 return s5h1409_writereg(state, 0xf2, enable);
458} 458}
@@ -461,7 +461,7 @@ static int s5h1409_register_reset(struct dvb_frontend* fe)
461{ 461{
462 struct s5h1409_state* state = fe->demodulator_priv; 462 struct s5h1409_state* state = fe->demodulator_priv;
463 463
464 dprintk("%s()\n", __FUNCTION__); 464 dprintk("%s()\n", __func__);
465 465
466 return s5h1409_writereg(state, 0xfa, 0); 466 return s5h1409_writereg(state, 0xfa, 0);
467} 467}
@@ -534,7 +534,7 @@ static int s5h1409_set_frontend (struct dvb_frontend* fe,
534{ 534{
535 struct s5h1409_state* state = fe->demodulator_priv; 535 struct s5h1409_state* state = fe->demodulator_priv;
536 536
537 dprintk("%s(frequency=%d)\n", __FUNCTION__, p->frequency); 537 dprintk("%s(frequency=%d)\n", __func__, p->frequency);
538 538
539 s5h1409_softreset(fe); 539 s5h1409_softreset(fe);
540 540
@@ -565,7 +565,7 @@ static int s5h1409_set_mpeg_timing(struct dvb_frontend *fe, int mode)
565 struct s5h1409_state *state = fe->demodulator_priv; 565 struct s5h1409_state *state = fe->demodulator_priv;
566 u16 val; 566 u16 val;
567 567
568 dprintk("%s(%d)\n", __FUNCTION__, mode); 568 dprintk("%s(%d)\n", __func__, mode);
569 569
570 val = s5h1409_readreg(state, 0xac) & 0xcfff; 570 val = s5h1409_readreg(state, 0xac) & 0xcfff;
571 switch (mode) { 571 switch (mode) {
@@ -573,7 +573,7 @@ static int s5h1409_set_mpeg_timing(struct dvb_frontend *fe, int mode)
573 val |= 0x0000; 573 val |= 0x0000;
574 break; 574 break;
575 case S5H1409_MPEGTIMING_CONTINOUS_NONINVERTING_CLOCK: 575 case S5H1409_MPEGTIMING_CONTINOUS_NONINVERTING_CLOCK:
576 dprintk("%s(%d) Mode1 or Defaulting\n", __FUNCTION__, mode); 576 dprintk("%s(%d) Mode1 or Defaulting\n", __func__, mode);
577 val |= 0x1000; 577 val |= 0x1000;
578 break; 578 break;
579 case S5H1409_MPEGTIMING_NONCONTINOUS_INVERTING_CLOCK: 579 case S5H1409_MPEGTIMING_NONCONTINOUS_INVERTING_CLOCK:
@@ -597,7 +597,7 @@ static int s5h1409_init (struct dvb_frontend* fe)
597 int i; 597 int i;
598 598
599 struct s5h1409_state* state = fe->demodulator_priv; 599 struct s5h1409_state* state = fe->demodulator_priv;
600 dprintk("%s()\n", __FUNCTION__); 600 dprintk("%s()\n", __func__);
601 601
602 s5h1409_sleep(fe, 0); 602 s5h1409_sleep(fe, 0);
603 s5h1409_register_reset(fe); 603 s5h1409_register_reset(fe);
@@ -663,7 +663,7 @@ static int s5h1409_read_status(struct dvb_frontend* fe, fe_status_t* status)
663 break; 663 break;
664 } 664 }
665 665
666 dprintk("%s() status 0x%08x\n", __FUNCTION__, *status); 666 dprintk("%s() status 0x%08x\n", __func__, *status);
667 667
668 return 0; 668 return 0;
669} 669}
@@ -671,7 +671,7 @@ static int s5h1409_read_status(struct dvb_frontend* fe, fe_status_t* status)
671static int s5h1409_qam256_lookup_snr(struct dvb_frontend* fe, u16* snr, u16 v) 671static int s5h1409_qam256_lookup_snr(struct dvb_frontend* fe, u16* snr, u16 v)
672{ 672{
673 int i, ret = -EINVAL; 673 int i, ret = -EINVAL;
674 dprintk("%s()\n", __FUNCTION__); 674 dprintk("%s()\n", __func__);
675 675
676 for (i=0; i < ARRAY_SIZE(qam256_snr_tab); i++) { 676 for (i=0; i < ARRAY_SIZE(qam256_snr_tab); i++) {
677 if (v < qam256_snr_tab[i].val) { 677 if (v < qam256_snr_tab[i].val) {
@@ -686,7 +686,7 @@ static int s5h1409_qam256_lookup_snr(struct dvb_frontend* fe, u16* snr, u16 v)
686static int s5h1409_qam64_lookup_snr(struct dvb_frontend* fe, u16* snr, u16 v) 686static int s5h1409_qam64_lookup_snr(struct dvb_frontend* fe, u16* snr, u16 v)
687{ 687{
688 int i, ret = -EINVAL; 688 int i, ret = -EINVAL;
689 dprintk("%s()\n", __FUNCTION__); 689 dprintk("%s()\n", __func__);
690 690
691 for (i=0; i < ARRAY_SIZE(qam64_snr_tab); i++) { 691 for (i=0; i < ARRAY_SIZE(qam64_snr_tab); i++) {
692 if (v < qam64_snr_tab[i].val) { 692 if (v < qam64_snr_tab[i].val) {
@@ -701,7 +701,7 @@ static int s5h1409_qam64_lookup_snr(struct dvb_frontend* fe, u16* snr, u16 v)
701static int s5h1409_vsb_lookup_snr(struct dvb_frontend* fe, u16* snr, u16 v) 701static int s5h1409_vsb_lookup_snr(struct dvb_frontend* fe, u16* snr, u16 v)
702{ 702{
703 int i, ret = -EINVAL; 703 int i, ret = -EINVAL;
704 dprintk("%s()\n", __FUNCTION__); 704 dprintk("%s()\n", __func__);
705 705
706 for (i=0; i < ARRAY_SIZE(vsb_snr_tab); i++) { 706 for (i=0; i < ARRAY_SIZE(vsb_snr_tab); i++) {
707 if (v > vsb_snr_tab[i].val) { 707 if (v > vsb_snr_tab[i].val) {
@@ -710,7 +710,7 @@ static int s5h1409_vsb_lookup_snr(struct dvb_frontend* fe, u16* snr, u16 v)
710 break; 710 break;
711 } 711 }
712 } 712 }
713 dprintk("%s() snr=%d\n", __FUNCTION__, *snr); 713 dprintk("%s() snr=%d\n", __func__, *snr);
714 return ret; 714 return ret;
715} 715}
716 716
@@ -718,7 +718,7 @@ static int s5h1409_read_snr(struct dvb_frontend* fe, u16* snr)
718{ 718{
719 struct s5h1409_state* state = fe->demodulator_priv; 719 struct s5h1409_state* state = fe->demodulator_priv;
720 u16 reg; 720 u16 reg;
721 dprintk("%s()\n", __FUNCTION__); 721 dprintk("%s()\n", __func__);
722 722
723 switch(state->current_modulation) { 723 switch(state->current_modulation) {
724 case QAM_64: 724 case QAM_64:
@@ -812,7 +812,7 @@ struct dvb_frontend* s5h1409_attach(const struct s5h1409_config* config,
812 812
813 if (s5h1409_init(&state->frontend) != 0) { 813 if (s5h1409_init(&state->frontend) != 0) {
814 printk(KERN_ERR "%s: Failed to initialize correctly\n", 814 printk(KERN_ERR "%s: Failed to initialize correctly\n",
815 __FUNCTION__); 815 __func__);
816 goto error; 816 goto error;
817 } 817 }
818 818