diff options
Diffstat (limited to 'drivers/media/dvb/frontends/tda10086.c')
-rw-r--r-- | drivers/media/dvb/frontends/tda10086.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/media/dvb/frontends/tda10086.c b/drivers/media/dvb/frontends/tda10086.c index 143af96439b9..5fc26757f393 100644 --- a/drivers/media/dvb/frontends/tda10086.c +++ b/drivers/media/dvb/frontends/tda10086.c | |||
@@ -60,7 +60,7 @@ static int tda10086_write_byte(struct tda10086_state *state, int reg, int data) | |||
60 | 60 | ||
61 | if (ret != 1) | 61 | if (ret != 1) |
62 | dprintk("%s: error reg=0x%x, data=0x%x, ret=%i\n", | 62 | dprintk("%s: error reg=0x%x, data=0x%x, ret=%i\n", |
63 | __FUNCTION__, reg, data, ret); | 63 | __func__, reg, data, ret); |
64 | 64 | ||
65 | return (ret != 1) ? ret : 0; | 65 | return (ret != 1) ? ret : 0; |
66 | } | 66 | } |
@@ -78,7 +78,7 @@ static int tda10086_read_byte(struct tda10086_state *state, int reg) | |||
78 | ret = i2c_transfer(state->i2c, msg, 2); | 78 | ret = i2c_transfer(state->i2c, msg, 2); |
79 | 79 | ||
80 | if (ret != 2) { | 80 | if (ret != 2) { |
81 | dprintk("%s: error reg=0x%x, ret=%i\n", __FUNCTION__, reg, | 81 | dprintk("%s: error reg=0x%x, ret=%i\n", __func__, reg, |
82 | ret); | 82 | ret); |
83 | return ret; | 83 | return ret; |
84 | } | 84 | } |
@@ -108,7 +108,7 @@ static int tda10086_init(struct dvb_frontend* fe) | |||
108 | struct tda10086_state* state = fe->demodulator_priv; | 108 | struct tda10086_state* state = fe->demodulator_priv; |
109 | u8 t22k_off = 0x80; | 109 | u8 t22k_off = 0x80; |
110 | 110 | ||
111 | dprintk ("%s\n", __FUNCTION__); | 111 | dprintk ("%s\n", __func__); |
112 | 112 | ||
113 | if (state->config->diseqc_tone) | 113 | if (state->config->diseqc_tone) |
114 | t22k_off = 0; | 114 | t22k_off = 0; |
@@ -173,7 +173,7 @@ static void tda10086_diseqc_wait(struct tda10086_state *state) | |||
173 | unsigned long timeout = jiffies + msecs_to_jiffies(200); | 173 | unsigned long timeout = jiffies + msecs_to_jiffies(200); |
174 | while (!(tda10086_read_byte(state, 0x50) & 0x01)) { | 174 | while (!(tda10086_read_byte(state, 0x50) & 0x01)) { |
175 | if(time_after(jiffies, timeout)) { | 175 | if(time_after(jiffies, timeout)) { |
176 | printk("%s: diseqc queue not ready, command may be lost.\n", __FUNCTION__); | 176 | printk("%s: diseqc queue not ready, command may be lost.\n", __func__); |
177 | break; | 177 | break; |
178 | } | 178 | } |
179 | msleep(10); | 179 | msleep(10); |
@@ -185,7 +185,7 @@ static int tda10086_set_tone (struct dvb_frontend* fe, fe_sec_tone_mode_t tone) | |||
185 | struct tda10086_state* state = fe->demodulator_priv; | 185 | struct tda10086_state* state = fe->demodulator_priv; |
186 | u8 t22k_off = 0x80; | 186 | u8 t22k_off = 0x80; |
187 | 187 | ||
188 | dprintk ("%s\n", __FUNCTION__); | 188 | dprintk ("%s\n", __func__); |
189 | 189 | ||
190 | if (state->config->diseqc_tone) | 190 | if (state->config->diseqc_tone) |
191 | t22k_off = 0; | 191 | t22k_off = 0; |
@@ -211,7 +211,7 @@ static int tda10086_send_master_cmd (struct dvb_frontend* fe, | |||
211 | u8 oldval; | 211 | u8 oldval; |
212 | u8 t22k_off = 0x80; | 212 | u8 t22k_off = 0x80; |
213 | 213 | ||
214 | dprintk ("%s\n", __FUNCTION__); | 214 | dprintk ("%s\n", __func__); |
215 | 215 | ||
216 | if (state->config->diseqc_tone) | 216 | if (state->config->diseqc_tone) |
217 | t22k_off = 0; | 217 | t22k_off = 0; |
@@ -239,7 +239,7 @@ static int tda10086_send_burst (struct dvb_frontend* fe, fe_sec_mini_cmd_t minic | |||
239 | u8 oldval = tda10086_read_byte(state, 0x36); | 239 | u8 oldval = tda10086_read_byte(state, 0x36); |
240 | u8 t22k_off = 0x80; | 240 | u8 t22k_off = 0x80; |
241 | 241 | ||
242 | dprintk ("%s\n", __FUNCTION__); | 242 | dprintk ("%s\n", __func__); |
243 | 243 | ||
244 | if (state->config->diseqc_tone) | 244 | if (state->config->diseqc_tone) |
245 | t22k_off = 0; | 245 | t22k_off = 0; |
@@ -266,7 +266,7 @@ static int tda10086_set_inversion(struct tda10086_state *state, | |||
266 | { | 266 | { |
267 | u8 invval = 0x80; | 267 | u8 invval = 0x80; |
268 | 268 | ||
269 | dprintk ("%s %i %i\n", __FUNCTION__, fe_params->inversion, state->config->invert); | 269 | dprintk ("%s %i %i\n", __func__, fe_params->inversion, state->config->invert); |
270 | 270 | ||
271 | switch(fe_params->inversion) { | 271 | switch(fe_params->inversion) { |
272 | case INVERSION_OFF: | 272 | case INVERSION_OFF: |
@@ -300,7 +300,7 @@ static int tda10086_set_symbol_rate(struct tda10086_state *state, | |||
300 | u32 bdri; | 300 | u32 bdri; |
301 | u32 symbol_rate = fe_params->u.qpsk.symbol_rate; | 301 | u32 symbol_rate = fe_params->u.qpsk.symbol_rate; |
302 | 302 | ||
303 | dprintk ("%s %i\n", __FUNCTION__, symbol_rate); | 303 | dprintk ("%s %i\n", __func__, symbol_rate); |
304 | 304 | ||
305 | // setup the decimation and anti-aliasing filters.. | 305 | // setup the decimation and anti-aliasing filters.. |
306 | if (symbol_rate < (u32) (SACLK * 0.0137)) { | 306 | if (symbol_rate < (u32) (SACLK * 0.0137)) { |
@@ -366,7 +366,7 @@ static int tda10086_set_fec(struct tda10086_state *state, | |||
366 | { | 366 | { |
367 | u8 fecval; | 367 | u8 fecval; |
368 | 368 | ||
369 | dprintk ("%s %i\n", __FUNCTION__, fe_params->u.qpsk.fec_inner); | 369 | dprintk ("%s %i\n", __func__, fe_params->u.qpsk.fec_inner); |
370 | 370 | ||
371 | switch(fe_params->u.qpsk.fec_inner) { | 371 | switch(fe_params->u.qpsk.fec_inner) { |
372 | case FEC_1_2: | 372 | case FEC_1_2: |
@@ -412,7 +412,7 @@ static int tda10086_set_frontend(struct dvb_frontend* fe, | |||
412 | u32 freq = 0; | 412 | u32 freq = 0; |
413 | int freqoff; | 413 | int freqoff; |
414 | 414 | ||
415 | dprintk ("%s\n", __FUNCTION__); | 415 | dprintk ("%s\n", __func__); |
416 | 416 | ||
417 | // modify parameters for tuning | 417 | // modify parameters for tuning |
418 | tda10086_write_byte(state, 0x02, 0x35); | 418 | tda10086_write_byte(state, 0x02, 0x35); |
@@ -459,7 +459,7 @@ static int tda10086_get_frontend(struct dvb_frontend* fe, struct dvb_frontend_pa | |||
459 | int tmp; | 459 | int tmp; |
460 | u64 tmp64; | 460 | u64 tmp64; |
461 | 461 | ||
462 | dprintk ("%s\n", __FUNCTION__); | 462 | dprintk ("%s\n", __func__); |
463 | 463 | ||
464 | // check for invalid symbol rate | 464 | // check for invalid symbol rate |
465 | if (fe_params->u.qpsk.symbol_rate < 500000) | 465 | if (fe_params->u.qpsk.symbol_rate < 500000) |
@@ -550,7 +550,7 @@ static int tda10086_read_status(struct dvb_frontend* fe, fe_status_t *fe_status) | |||
550 | struct tda10086_state* state = fe->demodulator_priv; | 550 | struct tda10086_state* state = fe->demodulator_priv; |
551 | u8 val; | 551 | u8 val; |
552 | 552 | ||
553 | dprintk ("%s\n", __FUNCTION__); | 553 | dprintk ("%s\n", __func__); |
554 | 554 | ||
555 | val = tda10086_read_byte(state, 0x0e); | 555 | val = tda10086_read_byte(state, 0x0e); |
556 | *fe_status = 0; | 556 | *fe_status = 0; |
@@ -579,7 +579,7 @@ static int tda10086_read_signal_strength(struct dvb_frontend* fe, u16 * signal) | |||
579 | struct tda10086_state* state = fe->demodulator_priv; | 579 | struct tda10086_state* state = fe->demodulator_priv; |
580 | u8 _str; | 580 | u8 _str; |
581 | 581 | ||
582 | dprintk ("%s\n", __FUNCTION__); | 582 | dprintk ("%s\n", __func__); |
583 | 583 | ||
584 | _str = 0xff - tda10086_read_byte(state, 0x43); | 584 | _str = 0xff - tda10086_read_byte(state, 0x43); |
585 | *signal = (_str << 8) | _str; | 585 | *signal = (_str << 8) | _str; |
@@ -592,7 +592,7 @@ static int tda10086_read_snr(struct dvb_frontend* fe, u16 * snr) | |||
592 | struct tda10086_state* state = fe->demodulator_priv; | 592 | struct tda10086_state* state = fe->demodulator_priv; |
593 | u8 _snr; | 593 | u8 _snr; |
594 | 594 | ||
595 | dprintk ("%s\n", __FUNCTION__); | 595 | dprintk ("%s\n", __func__); |
596 | 596 | ||
597 | _snr = 0xff - tda10086_read_byte(state, 0x1c); | 597 | _snr = 0xff - tda10086_read_byte(state, 0x1c); |
598 | *snr = (_snr << 8) | _snr; | 598 | *snr = (_snr << 8) | _snr; |
@@ -604,7 +604,7 @@ static int tda10086_read_ucblocks(struct dvb_frontend* fe, u32* ucblocks) | |||
604 | { | 604 | { |
605 | struct tda10086_state* state = fe->demodulator_priv; | 605 | struct tda10086_state* state = fe->demodulator_priv; |
606 | 606 | ||
607 | dprintk ("%s\n", __FUNCTION__); | 607 | dprintk ("%s\n", __func__); |
608 | 608 | ||
609 | // read it | 609 | // read it |
610 | *ucblocks = tda10086_read_byte(state, 0x18) & 0x7f; | 610 | *ucblocks = tda10086_read_byte(state, 0x18) & 0x7f; |
@@ -620,7 +620,7 @@ static int tda10086_read_ber(struct dvb_frontend* fe, u32* ber) | |||
620 | { | 620 | { |
621 | struct tda10086_state* state = fe->demodulator_priv; | 621 | struct tda10086_state* state = fe->demodulator_priv; |
622 | 622 | ||
623 | dprintk ("%s\n", __FUNCTION__); | 623 | dprintk ("%s\n", __func__); |
624 | 624 | ||
625 | // read it | 625 | // read it |
626 | *ber = 0; | 626 | *ber = 0; |
@@ -635,7 +635,7 @@ static int tda10086_sleep(struct dvb_frontend* fe) | |||
635 | { | 635 | { |
636 | struct tda10086_state* state = fe->demodulator_priv; | 636 | struct tda10086_state* state = fe->demodulator_priv; |
637 | 637 | ||
638 | dprintk ("%s\n", __FUNCTION__); | 638 | dprintk ("%s\n", __func__); |
639 | 639 | ||
640 | tda10086_write_mask(state, 0x00, 0x08, 0x08); | 640 | tda10086_write_mask(state, 0x00, 0x08, 0x08); |
641 | 641 | ||
@@ -646,7 +646,7 @@ static int tda10086_i2c_gate_ctrl(struct dvb_frontend* fe, int enable) | |||
646 | { | 646 | { |
647 | struct tda10086_state* state = fe->demodulator_priv; | 647 | struct tda10086_state* state = fe->demodulator_priv; |
648 | 648 | ||
649 | dprintk ("%s\n", __FUNCTION__); | 649 | dprintk ("%s\n", __func__); |
650 | 650 | ||
651 | if (enable) { | 651 | if (enable) { |
652 | tda10086_write_mask(state, 0x00, 0x10, 0x10); | 652 | tda10086_write_mask(state, 0x00, 0x10, 0x10); |
@@ -737,7 +737,7 @@ struct dvb_frontend* tda10086_attach(const struct tda10086_config* config, | |||
737 | { | 737 | { |
738 | struct tda10086_state *state; | 738 | struct tda10086_state *state; |
739 | 739 | ||
740 | dprintk ("%s\n", __FUNCTION__); | 740 | dprintk ("%s\n", __func__); |
741 | 741 | ||
742 | /* allocate memory for the internal state */ | 742 | /* allocate memory for the internal state */ |
743 | state = kmalloc(sizeof(struct tda10086_state), GFP_KERNEL); | 743 | state = kmalloc(sizeof(struct tda10086_state), GFP_KERNEL); |