diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-26 18:02:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-31 07:22:49 -0500 |
commit | c6f56e7d794cba022353d464dfa3383d1b3e0125 (patch) | |
tree | 54414d0810e4f465a4107925092f8219695a3341 /drivers/media/common/tuners/mxl5007t.c | |
parent | 88ab898f6639ca5a14943a882fbd141afc81fe90 (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.c | 5 |
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) | |||
625 | enum mxl5007t_mode mode; | 625 | enum mxl5007t_mode mode; |
626 | int ret; | 626 | int ret; |
627 | u32 freq = c->frequency; | 627 | u32 freq = c->frequency; |
628 | u32 band = BANDWIDTH_6_MHZ; | ||
629 | 628 | ||
630 | switch (delsys) { | 629 | switch (delsys) { |
631 | case SYS_ATSC: | 630 | case SYS_ATSC: |
@@ -645,10 +644,8 @@ static int mxl5007t_set_params(struct dvb_frontend *fe) | |||
645 | break; | 644 | break; |
646 | case 7000000: | 645 | case 7000000: |
647 | bw = MxL_BW_7MHz; | 646 | bw = MxL_BW_7MHz; |
648 | band = BANDWIDTH_7_MHZ; | ||
649 | case 8000000: | 647 | case 8000000: |
650 | bw = MxL_BW_8MHz; | 648 | bw = MxL_BW_8MHz; |
651 | band = BANDWIDTH_8_MHZ; | ||
652 | default: | 649 | default: |
653 | return -EINVAL; | 650 | return -EINVAL; |
654 | } | 651 | } |
@@ -672,7 +669,7 @@ static int mxl5007t_set_params(struct dvb_frontend *fe) | |||
672 | goto fail; | 669 | goto fail; |
673 | 670 | ||
674 | state->frequency = freq; | 671 | state->frequency = freq; |
675 | state->bandwidth = band; | 672 | state->bandwidth = c->bandwidth_hz; |
676 | fail: | 673 | fail: |
677 | mutex_unlock(&state->lock); | 674 | mutex_unlock(&state->lock); |
678 | 675 | ||