summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/m88rs2000.c
diff options
context:
space:
mode:
authorMalcolm Priestley <tvboxspy@gmail.com>2013-01-06 08:40:42 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-06 10:49:38 -0200
commita0a030bdbe612b7d8a941fba672300f7fc21b275 (patch)
treed63f3c7ceff154c381b4ccb368f5bbb9a365a13b /drivers/media/dvb-frontends/m88rs2000.c
parent668a8b3b57e26a14a5172c84da0d861fb9f697d9 (diff)
[media] ts2020: call get_rf_strength from frontend
Restore ds3000.c read_signal_strength. Call tuner get_rf_strength from frontend read_signal_strength. We are able to do a NULL check and doesn't limit the tuner attach to the frontend attach area. At the moment the lmedm04 tuner attach is stuck in frontend attach area. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb-frontends/m88rs2000.c')
-rw-r--r--drivers/media/dvb-frontends/m88rs2000.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/m88rs2000.c b/drivers/media/dvb-frontends/m88rs2000.c
index 283c90fee374..4da5272075cb 100644
--- a/drivers/media/dvb-frontends/m88rs2000.c
+++ b/drivers/media/dvb-frontends/m88rs2000.c
@@ -446,7 +446,9 @@ static int m88rs2000_read_ber(struct dvb_frontend *fe, u32 *ber)
static int m88rs2000_read_signal_strength(struct dvb_frontend *fe,
u16 *strength)
{
- *strength = 0;
+ if (fe->ops.tuner_ops.get_rf_strength)
+ fe->ops.tuner_ops.get_rf_strength(fe, strength);
+
return 0;
}