diff mbox

[2/2] IT9135 add MFE support to driver

Message ID 1312624354.2353.17.camel@localhost (mailing list archive)
State Not Applicable
Headers show

Commit Message

Malcolm Priestley Aug. 6, 2011, 9:52 a.m. UTC
Add MFE Support.

 Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>

---
 drivers/media/dvb/dvb-usb/it9135.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/drivers/media/dvb/dvb-usb/it9135.c b/drivers/media/dvb/dvb-usb/it9135.c
index 772adf4..a8ab028 100644
--- a/drivers/media/dvb/dvb-usb/it9135.c
+++ b/drivers/media/dvb/dvb-usb/it9135.c
@@ -1781,8 +1781,7 @@  static struct dvb_frontend_ops it9135_ops = {
 
 static int it9135_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff)
 {
-	struct it9135_dev_ctx *dev =
-	    (struct it9135_dev_ctx *)adap->fe->demodulator_priv;
+	struct it9135_dev_ctx *dev = adap->fe[0]->demodulator_priv;
 	int ret = 0;
 
 	deb_info("%s: onoff:%d\n", __func__, onoff);
@@ -1813,8 +1812,7 @@  static int it9135_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff)
 static int it9135_pid_filter(struct dvb_usb_adapter *adap, int index,
 			     u16 pidnum, int onoff)
 {
-	struct it9135_dev_ctx *dev =
-	    (struct it9135_dev_ctx *)adap->fe->demodulator_priv;
+	struct it9135_dev_ctx *dev = adap->fe[0]->demodulator_priv;
 	unsigned short pid;
 	int ret = 0;
 
@@ -2234,7 +2232,7 @@  static int it9135_frontend_attach(struct dvb_usb_adapter *adap)
 {
 	deb_func("Enter %s Function - chip=%d\n", __func__, adap->id);
 
-	adap->fe = it9135_attach(adap);
+	adap->fe[0] = it9135_attach(adap);
 
 	return adap->fe == NULL ? -ENODEV : 0;
 }