All of lore.kernel.org
 help / color / mirror / Atom feed
From: Malcolm Priestley <tvboxspy@gmail.com>
To: linux-media@vger.kernel.org
Cc: jasondong <jason.dong@ite.com.tw>
Subject: [PATCH 2/2] IT9135 add MFE support to driver
Date: Sat, 06 Aug 2011 10:52:34 +0100	[thread overview]
Message-ID: <1312624354.2353.17.camel@localhost> (raw)
In-Reply-To: <1312539895.2763.33.camel@Jason-Linux>

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 --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;
 }
-- 
1.7.4.1



  parent reply	other threads:[~2011-08-06  9:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-05 10:24 [PATCH 1/1] Add driver support for ITE IT9135 device jasondong
2011-08-06  9:51 ` [PATCH 1/2] IT9135 Add support for KWORLD_UB499_2T_T09 (id 1b80:e409) Malcolm Priestley
2011-08-06  9:52 ` Malcolm Priestley [this message]
2011-08-24 18:08 ` [PATCH 1/1] Add driver support for ITE IT9135 device Arkadiusz Miskiewicz
2011-08-24 20:27   ` Arkadiusz Miskiewicz
2011-09-03 13:44 ` Mauro Carvalho Chehab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1312624354.2353.17.camel@localhost \
    --to=tvboxspy@gmail.com \
    --cc=jason.dong@ite.com.tw \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.