aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/dvb-pll.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-24 10:03:05 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 05:52:22 -0500
commit249fa0b01c82f497efa15cb98081183e8938985f (patch)
tree74339d23b7581f8a3a00d1586cf632b802fb87cf /drivers/media/dvb/frontends/dvb-pll.c
parent1466194db5f83ade16e3b0bae7e57132d7692ea2 (diff)
[media] dvb: remove dvb_frontend_parameters from calc_regs()
The calc_regs() callback is used by a few frontends (mt352, nxt200x, digitv and zl10353). On all places it is called, the parameters are set by DVBv5 way. So, just use the DVBv5 struct and remove the extra parameter. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/dvb-pll.c')
-rw-r--r--drivers/media/dvb/frontends/dvb-pll.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c
index c19d6bbc68ce..f967cf9b4a60 100644
--- a/drivers/media/dvb/frontends/dvb-pll.c
+++ b/drivers/media/dvb/frontends/dvb-pll.c
@@ -647,9 +647,9 @@ static int dvb_pll_set_params(struct dvb_frontend *fe,
647} 647}
648 648
649static int dvb_pll_calc_regs(struct dvb_frontend *fe, 649static int dvb_pll_calc_regs(struct dvb_frontend *fe,
650 struct dvb_frontend_parameters *params,
651 u8 *buf, int buf_len) 650 u8 *buf, int buf_len)
652{ 651{
652 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
653 struct dvb_pll_priv *priv = fe->tuner_priv; 653 struct dvb_pll_priv *priv = fe->tuner_priv;
654 int result; 654 int result;
655 u32 frequency = 0; 655 u32 frequency = 0;
@@ -657,7 +657,7 @@ static int dvb_pll_calc_regs(struct dvb_frontend *fe,
657 if (buf_len < 5) 657 if (buf_len < 5)
658 return -EINVAL; 658 return -EINVAL;
659 659
660 result = dvb_pll_configure(fe, buf + 1, params->frequency); 660 result = dvb_pll_configure(fe, buf + 1, c->frequency);
661 if (result < 0) 661 if (result < 0)
662 return result; 662 return result;
663 else 663 else
@@ -666,7 +666,7 @@ static int dvb_pll_calc_regs(struct dvb_frontend *fe,
666 buf[0] = priv->pll_i2c_address; 666 buf[0] = priv->pll_i2c_address;
667 667
668 priv->frequency = frequency; 668 priv->frequency = frequency;
669 priv->bandwidth = (fe->ops.info.type == FE_OFDM) ? params->u.ofdm.bandwidth : 0; 669 priv->bandwidth = c->bandwidth_hz;
670 670
671 return 5; 671 return 5;
672} 672}