summaryrefslogtreecommitdiff
path: root/drivers/media/common/tuners/mxl5007t.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-26 20:02:28 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-31 10:22:49 -0200
commitc6f56e7d794cba022353d464dfa3383d1b3e0125 (patch)
tree54414d0810e4f465a4107925092f8219695a3341 /drivers/media/common/tuners/mxl5007t.c
parent88ab898f6639ca5a14943a882fbd141afc81fe90 (diff)
[media] dvb: don't use DVBv3 bandwidth macros
Every frontend now uses DVBv5 way. So, let's not use the DVBv3 macros internally anymore. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/mxl5007t.c')
-rw-r--r--drivers/media/common/tuners/mxl5007t.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/common/tuners/mxl5007t.c b/drivers/media/common/tuners/mxl5007t.c
index 844cfac79f6f..8f4899b0dc64 100644
--- a/drivers/media/common/tuners/mxl5007t.c
+++ b/drivers/media/common/tuners/mxl5007t.c
@@ -625,7 +625,6 @@ static int mxl5007t_set_params(struct dvb_frontend *fe)
enum mxl5007t_mode mode;
int ret;
u32 freq = c->frequency;
- u32 band = BANDWIDTH_6_MHZ;
switch (delsys) {
case SYS_ATSC:
@@ -645,10 +644,8 @@ static int mxl5007t_set_params(struct dvb_frontend *fe)
break;
case 7000000:
bw = MxL_BW_7MHz;
- band = BANDWIDTH_7_MHZ;
case 8000000:
bw = MxL_BW_8MHz;
- band = BANDWIDTH_8_MHZ;
default:
return -EINVAL;
}
@@ -672,7 +669,7 @@ static int mxl5007t_set_params(struct dvb_frontend *fe)
goto fail;
state->frequency = freq;
- state->bandwidth = band;
+ state->bandwidth = c->bandwidth_hz;
fail:
mutex_unlock(&state->lock);