summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-19 01:38:49 +0100
committerAndrew de Quincey <adq_dvb@lidskialf.net>2006-04-19 01:38:49 +0100
commit8c360c7605e4751038ad67e9fd79e5c1c96b81d6 (patch)
treece48b4b56033a8f029e9561d548861d64b931fc2 /linux/drivers/media/dvb/frontends
parentb641e6d90fe3ff6e71a613888d1c1ec22842adda (diff)
downloadmediapointer-dvb-s2-8c360c7605e4751038ad67e9fd79e5c1c96b81d6.tar.gz
mediapointer-dvb-s2-8c360c7605e4751038ad67e9fd79e5c1c96b81d6.tar.bz2
Convert calls from _pllbuf() to _calc_reg()
From: Andrew de Quincey <adq_dvb@lidskialf.net> Johannes Stezenbach suggested this change - definite improvement. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r--linux/drivers/media/dvb/frontends/dvb-pll.c4
-rw-r--r--linux/drivers/media/dvb/frontends/mt352.c4
-rw-r--r--linux/drivers/media/dvb/frontends/nxt200x.c4
-rw-r--r--linux/drivers/media/dvb/frontends/zl10353.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/linux/drivers/media/dvb/frontends/dvb-pll.c b/linux/drivers/media/dvb/frontends/dvb-pll.c
index 5f463e8ae..1a92ac8d2 100644
--- a/linux/drivers/media/dvb/frontends/dvb-pll.c
+++ b/linux/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
return 0;
}
-static int dvb_pll_pllbuf(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8 *buf, int buf_len)
+static int dvb_pll_calc_regs(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8 *buf, int buf_len)
{
struct dvb_pll_priv *priv = fe->tuner_priv;
int result;
@@ -606,7 +606,7 @@ static struct dvb_tuner_ops dvb_pll_tuner_ops = {
.release = dvb_pll_release,
.sleep = dvb_pll_sleep,
.set_params = dvb_pll_set_params,
- .pllbuf = dvb_pll_pllbuf,
+ .calc_regs = dvb_pll_calc_regs,
.get_frequency = dvb_pll_get_frequency,
.get_bandwidth = dvb_pll_get_bandwidth,
};
diff --git a/linux/drivers/media/dvb/frontends/mt352.c b/linux/drivers/media/dvb/frontends/mt352.c
index 3c86018e7..ed3bede02 100644
--- a/linux/drivers/media/dvb/frontends/mt352.c
+++ b/linux/drivers/media/dvb/frontends/mt352.c
@@ -302,8 +302,8 @@ static int mt352_set_parameters(struct dvb_frontend* fe,
// retrieve the pllbuf - we do this even if there is no
// secondary tuner simply so we have a record of what was sent for
// debugging.
- if (fe->ops->tuner_ops.pllbuf) {
- fe->ops->tuner_ops.pllbuf(fe, param, buf+8, 5);
+ if (fe->ops->tuner_ops.calc_regs) {
+ fe->ops->tuner_ops.calc_regs(fe, param, buf+8, 5);
buf[8] <<= 1;
mt352_write(fe, buf, sizeof(buf));
}
diff --git a/linux/drivers/media/dvb/frontends/nxt200x.c b/linux/drivers/media/dvb/frontends/nxt200x.c
index 809ffd40f..9b13f14f1 100644
--- a/linux/drivers/media/dvb/frontends/nxt200x.c
+++ b/linux/drivers/media/dvb/frontends/nxt200x.c
@@ -548,8 +548,8 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
}
/* get tuning information */
- if (fe->ops->tuner_ops.pllbuf) {
- fe->ops->tuner_ops.pllbuf(fe, p, buf, 5);
+ if (fe->ops->tuner_ops.calc_regs) {
+ fe->ops->tuner_ops.calc_regs(fe, p, buf, 5);
}
/* set additional params */
diff --git a/linux/drivers/media/dvb/frontends/zl10353.c b/linux/drivers/media/dvb/frontends/zl10353.c
index f4851907a..1018baae0 100644
--- a/linux/drivers/media/dvb/frontends/zl10353.c
+++ b/linux/drivers/media/dvb/frontends/zl10353.c
@@ -157,8 +157,8 @@ static int zl10353_set_parameters(struct dvb_frontend *fe,
}
// if pllbuf is defined, retrieve the settings
- if (fe->ops->tuner_ops.pllbuf) {
- fe->ops->tuner_ops.pllbuf(fe, param, pllbuf+1, 5);
+ if (fe->ops->tuner_ops.calc_regs) {
+ fe->ops->tuner_ops.calc_regs(fe, param, pllbuf+1, 5);
pllbuf[1] <<= 1;
} else {
// fake pllbuf settings