summaryrefslogtreecommitdiff
path: root/drivers/media/common/tuners/tuner-simple.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/tuner-simple.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/tuner-simple.c')
-rw-r--r--drivers/media/common/tuners/tuner-simple.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/media/common/tuners/tuner-simple.c b/drivers/media/common/tuners/tuner-simple.c
index ce91c43c53e8..39e7e583c8c0 100644
--- a/drivers/media/common/tuners/tuner-simple.c
+++ b/drivers/media/common/tuners/tuner-simple.c
@@ -1028,17 +1028,7 @@ static int simple_get_frequency(struct dvb_frontend *fe, u32 *frequency)
static int simple_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
{
struct tuner_simple_priv *priv = fe->tuner_priv;
- switch (priv->bandwidth) {
- case 6000000:
- *bandwidth = BANDWIDTH_6_MHZ;
- break;
- case 7000000:
- *bandwidth = BANDWIDTH_7_MHZ;
- break;
- case 8000000:
- *bandwidth = BANDWIDTH_8_MHZ;
- break;
- }
+ *bandwidth = priv->bandwidth;
return 0;
}