diff options
author | Andrew de Quincey <adq_dvb@lidskialf.net> | 2006-04-18 20:38:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 00:59:34 -0400 |
commit | bd4956b8ec2075e965492647e0c7006a36efe5d9 (patch) | |
tree | 66d5ebecc0cdc84543cae07ca16a5d1a20aefb90 /drivers/media/dvb | |
parent | b12faeffb179e5397c7c443b0e86e447891125a6 (diff) |
V4L/DVB (3893): Convert calls from _pllbuf() to _calc_reg()
Johannes Stezenbach suggested this change - definite improvement.
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 12 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/cxusb.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/digitv.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/dvb-usb.h | 2 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-usb/umt-010.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/mt352.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/nxt200x.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/zl10353.c | 4 |
9 files changed, 20 insertions, 20 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 0f23ec04f7bc..09e18296b3ca 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -147,7 +147,7 @@ static int thomson_dtt7579_demod_init(struct dvb_frontend* fe) | |||
147 | return 0; | 147 | return 0; |
148 | } | 148 | } |
149 | 149 | ||
150 | static int thomson_dtt7579_tuner_pllbuf(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len) | 150 | static int thomson_dtt7579_tuner_calc_regs(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len) |
151 | { | 151 | { |
152 | u32 div; | 152 | u32 div; |
153 | unsigned char bs = 0; | 153 | unsigned char bs = 0; |
@@ -341,7 +341,7 @@ static int advbt771_samsung_tdtc9251dh0_demod_init(struct dvb_frontend* fe) | |||
341 | return 0; | 341 | return 0; |
342 | } | 342 | } |
343 | 343 | ||
344 | static int advbt771_samsung_tdtc9251dh0_tuner_pllbuf(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len) | 344 | static int advbt771_samsung_tdtc9251dh0_tuner_calc_regs(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len) |
345 | { | 345 | { |
346 | u32 div; | 346 | u32 div; |
347 | unsigned char bs = 0; | 347 | unsigned char bs = 0; |
@@ -512,7 +512,7 @@ static int digitv_alps_tded4_demod_init(struct dvb_frontend* fe) | |||
512 | return 0; | 512 | return 0; |
513 | } | 513 | } |
514 | 514 | ||
515 | static int digitv_alps_tded4_tuner_pllbuf(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len) | 515 | static int digitv_alps_tded4_tuner_calc_regs(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf, int buf_len) |
516 | { | 516 | { |
517 | u32 div; | 517 | u32 div; |
518 | struct dvb_ofdm_parameters *op = ¶ms->u.ofdm; | 518 | struct dvb_ofdm_parameters *op = ¶ms->u.ofdm; |
@@ -607,7 +607,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
607 | card->i2c_adapter); | 607 | card->i2c_adapter); |
608 | 608 | ||
609 | if (card->fe != NULL) { | 609 | if (card->fe != NULL) { |
610 | card->fe->ops->tuner_ops.pllbuf = thomson_dtt7579_tuner_pllbuf; | 610 | card->fe->ops->tuner_ops.calc_regs = thomson_dtt7579_tuner_calc_regs; |
611 | card->fe->ops->info.frequency_min = 174000000; | 611 | card->fe->ops->info.frequency_min = 174000000; |
612 | card->fe->ops->info.frequency_max = 862000000; | 612 | card->fe->ops->info.frequency_max = 862000000; |
613 | } | 613 | } |
@@ -642,7 +642,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
642 | card->fe = mt352_attach(&digitv_alps_tded4_config, card->i2c_adapter); | 642 | card->fe = mt352_attach(&digitv_alps_tded4_config, card->i2c_adapter); |
643 | 643 | ||
644 | if (card->fe != NULL) { | 644 | if (card->fe != NULL) { |
645 | card->fe->ops->tuner_ops.pllbuf = digitv_alps_tded4_tuner_pllbuf; | 645 | card->fe->ops->tuner_ops.calc_regs = digitv_alps_tded4_tuner_calc_regs; |
646 | dprintk ("dvb_bt8xx: an mt352 was detected on your digitv card\n"); | 646 | dprintk ("dvb_bt8xx: an mt352 was detected on your digitv card\n"); |
647 | } | 647 | } |
648 | break; | 648 | break; |
@@ -657,7 +657,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
657 | case BTTV_BOARD_AVDVBT_771: | 657 | case BTTV_BOARD_AVDVBT_771: |
658 | card->fe = mt352_attach(&advbt771_samsung_tdtc9251dh0_config, card->i2c_adapter); | 658 | card->fe = mt352_attach(&advbt771_samsung_tdtc9251dh0_config, card->i2c_adapter); |
659 | if (card->fe != NULL) { | 659 | if (card->fe != NULL) { |
660 | card->fe->ops->tuner_ops.pllbuf = advbt771_samsung_tdtc9251dh0_tuner_pllbuf; | 660 | card->fe->ops->tuner_ops.calc_regs = advbt771_samsung_tdtc9251dh0_tuner_calc_regs; |
661 | card->fe->ops->info.frequency_min = 174000000; | 661 | card->fe->ops->info.frequency_min = 174000000; |
662 | card->fe->ops->info.frequency_max = 862000000; | 662 | card->fe->ops->info.frequency_max = 862000000; |
663 | } | 663 | } |
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c index 8559c2cd9a45..0f178377d1a6 100644 --- a/drivers/media/dvb/dvb-usb/cxusb.c +++ b/drivers/media/dvb/dvb-usb/cxusb.c | |||
@@ -423,7 +423,7 @@ static int cxusb_mt352_frontend_attach(struct dvb_usb_device *d) | |||
423 | cxusb_ctrl_msg(d,CMD_DIGITAL, NULL, 0, NULL, 0); | 423 | cxusb_ctrl_msg(d,CMD_DIGITAL, NULL, 0, NULL, 0); |
424 | 424 | ||
425 | if ((d->fe = mt352_attach(&cxusb_mt352_config, &d->i2c_adap)) != NULL) { | 425 | if ((d->fe = mt352_attach(&cxusb_mt352_config, &d->i2c_adap)) != NULL) { |
426 | d->fe->ops->tuner_ops.pllbuf = dvb_usb_tuner_pllbuf; | 426 | d->fe->ops->tuner_ops.calc_regs = dvb_usb_tuner_calc_regs; |
427 | return 0; | 427 | return 0; |
428 | } | 428 | } |
429 | 429 | ||
@@ -438,7 +438,7 @@ static int cxusb_dee1601_frontend_attach(struct dvb_usb_device *d) | |||
438 | cxusb_ctrl_msg(d,CMD_DIGITAL, NULL, 0, NULL, 0); | 438 | cxusb_ctrl_msg(d,CMD_DIGITAL, NULL, 0, NULL, 0); |
439 | 439 | ||
440 | if ((d->fe = mt352_attach(&cxusb_dee1601_config, &d->i2c_adap)) != NULL) { | 440 | if ((d->fe = mt352_attach(&cxusb_dee1601_config, &d->i2c_adap)) != NULL) { |
441 | d->fe->ops->tuner_ops.pllbuf = dvb_usb_tuner_pllbuf; | 441 | d->fe->ops->tuner_ops.calc_regs = dvb_usb_tuner_calc_regs; |
442 | return 0; | 442 | return 0; |
443 | } | 443 | } |
444 | 444 | ||
diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c index 481f48b9d846..56814ba8037b 100644 --- a/drivers/media/dvb/dvb-usb/digitv.c +++ b/drivers/media/dvb/dvb-usb/digitv.c | |||
@@ -118,7 +118,7 @@ static int digitv_nxt6000_tuner_set_params(struct dvb_frontend *fe, struct dvb_f | |||
118 | { | 118 | { |
119 | struct dvb_usb_device *d = fe->dvb->priv; | 119 | struct dvb_usb_device *d = fe->dvb->priv; |
120 | u8 b[5]; | 120 | u8 b[5]; |
121 | dvb_usb_tuner_pllbuf(fe,fep,b, 5); | 121 | dvb_usb_tuner_calc_regs(fe,fep,b, 5); |
122 | return digitv_ctrl_msg(d,USB_WRITE_TUNER,0,&b[1],4,NULL,0); | 122 | return digitv_ctrl_msg(d,USB_WRITE_TUNER,0,&b[1],4,NULL,0); |
123 | } | 123 | } |
124 | 124 | ||
@@ -129,7 +129,7 @@ static struct nxt6000_config digitv_nxt6000_config = { | |||
129 | static int digitv_frontend_attach(struct dvb_usb_device *d) | 129 | static int digitv_frontend_attach(struct dvb_usb_device *d) |
130 | { | 130 | { |
131 | if ((d->fe = mt352_attach(&digitv_mt352_config, &d->i2c_adap)) != NULL) { | 131 | if ((d->fe = mt352_attach(&digitv_mt352_config, &d->i2c_adap)) != NULL) { |
132 | d->fe->ops->tuner_ops.pllbuf = dvb_usb_tuner_pllbuf; | 132 | d->fe->ops->tuner_ops.calc_regs = dvb_usb_tuner_calc_regs; |
133 | return 0; | 133 | return 0; |
134 | } | 134 | } |
135 | if ((d->fe = nxt6000_attach(&digitv_nxt6000_config, &d->i2c_adap)) != NULL) { | 135 | if ((d->fe = nxt6000_attach(&digitv_nxt6000_config, &d->i2c_adap)) != NULL) { |
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb.h b/drivers/media/dvb/dvb-usb/dvb-usb.h index 311acb43e4c8..4cf9f89c51bf 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb.h +++ b/drivers/media/dvb/dvb-usb/dvb-usb.h | |||
@@ -331,7 +331,7 @@ extern int dvb_usb_nec_rc_key_to_event(struct dvb_usb_device *, u8[], u32 *, int | |||
331 | 331 | ||
332 | /* commonly used pll init and set functions */ | 332 | /* commonly used pll init and set functions */ |
333 | extern int dvb_usb_tuner_init_i2c(struct dvb_frontend *); | 333 | extern int dvb_usb_tuner_init_i2c(struct dvb_frontend *); |
334 | extern int dvb_usb_tuner_pllbuf(struct dvb_frontend *, struct dvb_frontend_parameters *, u8 *buf, int buf_len); | 334 | extern int dvb_usb_tuner_calc_regs(struct dvb_frontend *, struct dvb_frontend_parameters *, u8 *buf, int buf_len); |
335 | extern int dvb_usb_tuner_set_params_i2c(struct dvb_frontend *, struct dvb_frontend_parameters *); | 335 | extern int dvb_usb_tuner_set_params_i2c(struct dvb_frontend *, struct dvb_frontend_parameters *); |
336 | 336 | ||
337 | /* commonly used firmware download types and function */ | 337 | /* commonly used firmware download types and function */ |
diff --git a/drivers/media/dvb/dvb-usb/umt-010.c b/drivers/media/dvb/dvb-usb/umt-010.c index 80538db79fcb..1a38c80acd6c 100644 --- a/drivers/media/dvb/dvb-usb/umt-010.c +++ b/drivers/media/dvb/dvb-usb/umt-010.c | |||
@@ -57,7 +57,7 @@ static int umt_mt352_frontend_attach(struct dvb_usb_device *d) | |||
57 | memset(&umt_config,0,sizeof(struct mt352_config)); | 57 | memset(&umt_config,0,sizeof(struct mt352_config)); |
58 | umt_config.demod_init = umt_mt352_demod_init; | 58 | umt_config.demod_init = umt_mt352_demod_init; |
59 | umt_config.demod_address = 0xf; | 59 | umt_config.demod_address = 0xf; |
60 | d->fe->ops->tuner_ops.pllbuf = dvb_usb_tuner_pllbuf; | 60 | d->fe->ops->tuner_ops.calc_regs = dvb_usb_tuner_calc_regs; |
61 | 61 | ||
62 | d->fe = mt352_attach(&umt_config, &d->i2c_adap); | 62 | d->fe = mt352_attach(&umt_config, &d->i2c_adap); |
63 | 63 | ||
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c index 5b96c2f280d5..a1a4be41e03e 100644 --- a/drivers/media/dvb/frontends/dvb-pll.c +++ b/drivers/media/dvb/frontends/dvb-pll.c | |||
@@ -555,7 +555,7 @@ static int dvb_pll_set_params(struct dvb_frontend *fe, struct dvb_frontend_param | |||
555 | return 0; | 555 | return 0; |
556 | } | 556 | } |
557 | 557 | ||
558 | static int dvb_pll_pllbuf(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8 *buf, int buf_len) | 558 | static int dvb_pll_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8 *buf, int buf_len) |
559 | { | 559 | { |
560 | struct dvb_pll_priv *priv = fe->tuner_priv; | 560 | struct dvb_pll_priv *priv = fe->tuner_priv; |
561 | int result; | 561 | int result; |
@@ -606,7 +606,7 @@ static struct dvb_tuner_ops dvb_pll_tuner_ops = { | |||
606 | .release = dvb_pll_release, | 606 | .release = dvb_pll_release, |
607 | .sleep = dvb_pll_sleep, | 607 | .sleep = dvb_pll_sleep, |
608 | .set_params = dvb_pll_set_params, | 608 | .set_params = dvb_pll_set_params, |
609 | .pllbuf = dvb_pll_pllbuf, | 609 | .calc_regs = dvb_pll_calc_regs, |
610 | .get_frequency = dvb_pll_get_frequency, | 610 | .get_frequency = dvb_pll_get_frequency, |
611 | .get_bandwidth = dvb_pll_get_bandwidth, | 611 | .get_bandwidth = dvb_pll_get_bandwidth, |
612 | }; | 612 | }; |
diff --git a/drivers/media/dvb/frontends/mt352.c b/drivers/media/dvb/frontends/mt352.c index 3c86018e7f9d..ed3bede029eb 100644 --- a/drivers/media/dvb/frontends/mt352.c +++ b/drivers/media/dvb/frontends/mt352.c | |||
@@ -302,8 +302,8 @@ static int mt352_set_parameters(struct dvb_frontend* fe, | |||
302 | // retrieve the pllbuf - we do this even if there is no | 302 | // retrieve the pllbuf - we do this even if there is no |
303 | // secondary tuner simply so we have a record of what was sent for | 303 | // secondary tuner simply so we have a record of what was sent for |
304 | // debugging. | 304 | // debugging. |
305 | if (fe->ops->tuner_ops.pllbuf) { | 305 | if (fe->ops->tuner_ops.calc_regs) { |
306 | fe->ops->tuner_ops.pllbuf(fe, param, buf+8, 5); | 306 | fe->ops->tuner_ops.calc_regs(fe, param, buf+8, 5); |
307 | buf[8] <<= 1; | 307 | buf[8] <<= 1; |
308 | mt352_write(fe, buf, sizeof(buf)); | 308 | mt352_write(fe, buf, sizeof(buf)); |
309 | } | 309 | } |
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c index 809ffd40fce8..9b13f14f14f6 100644 --- a/drivers/media/dvb/frontends/nxt200x.c +++ b/drivers/media/dvb/frontends/nxt200x.c | |||
@@ -548,8 +548,8 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe, | |||
548 | } | 548 | } |
549 | 549 | ||
550 | /* get tuning information */ | 550 | /* get tuning information */ |
551 | if (fe->ops->tuner_ops.pllbuf) { | 551 | if (fe->ops->tuner_ops.calc_regs) { |
552 | fe->ops->tuner_ops.pllbuf(fe, p, buf, 5); | 552 | fe->ops->tuner_ops.calc_regs(fe, p, buf, 5); |
553 | } | 553 | } |
554 | 554 | ||
555 | /* set additional params */ | 555 | /* set additional params */ |
diff --git a/drivers/media/dvb/frontends/zl10353.c b/drivers/media/dvb/frontends/zl10353.c index 1234eb0070d6..ac39f5519621 100644 --- a/drivers/media/dvb/frontends/zl10353.c +++ b/drivers/media/dvb/frontends/zl10353.c | |||
@@ -153,8 +153,8 @@ static int zl10353_set_parameters(struct dvb_frontend *fe, | |||
153 | } | 153 | } |
154 | 154 | ||
155 | // if pllbuf is defined, retrieve the settings | 155 | // if pllbuf is defined, retrieve the settings |
156 | if (fe->ops->tuner_ops.pllbuf) { | 156 | if (fe->ops->tuner_ops.calc_regs) { |
157 | fe->ops->tuner_ops.pllbuf(fe, param, pllbuf+1, 5); | 157 | fe->ops->tuner_ops.calc_regs(fe, param, pllbuf+1, 5); |
158 | pllbuf[1] <<= 1; | 158 | pllbuf[1] <<= 1; |
159 | } else { | 159 | } else { |
160 | // fake pllbuf settings | 160 | // fake pllbuf settings |