From patchwork Sat Aug 6 09:52:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 1041352 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p769qqgA022469 for ; Sat, 6 Aug 2011 09:52:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753580Ab1HFJwn (ORCPT ); Sat, 6 Aug 2011 05:52:43 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:48429 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753407Ab1HFJwm (ORCPT ); Sat, 6 Aug 2011 05:52:42 -0400 Received: by wyf22 with SMTP id 22so1695671wyf.19 for ; Sat, 06 Aug 2011 02:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; bh=z44JBlZeU8wjgR8nA2M+rzQs1lF2Mo9qSA/Zhuf40AA=; b=wnTV37iax8psBJPz4FfJNgzyGLlfl3+PFvYHH/R9qfSsdtyfgX9Wi69KgGe1ZHoVg1 QqyJvm+JZkV0HPS90osiqg3ey/4SOSjn4Zj50TqO70X/PDtwg0cP/0qcZCQAWKw7nixY ylkSYh0VQBhlYkvYYIhHbtBsYDJKO427Lawn8= Received: by 10.216.68.6 with SMTP id k6mr1388788wed.87.1312624361552; Sat, 06 Aug 2011 02:52:41 -0700 (PDT) Received: from [94.197.223.35] (94.197.223.35.threembb.co.uk [94.197.223.35]) by mx.google.com with ESMTPS id j11sm2258762wed.42.2011.08.06.02.52.39 (version=SSLv3 cipher=OTHER); Sat, 06 Aug 2011 02:52:40 -0700 (PDT) Subject: [PATCH 2/2] IT9135 add MFE support to driver From: Malcolm Priestley To: linux-media@vger.kernel.org Cc: jasondong In-Reply-To: <1312539895.2763.33.camel@Jason-Linux> References: <1312539895.2763.33.camel@Jason-Linux> Date: Sat, 06 Aug 2011 10:52:34 +0100 Message-ID: <1312624354.2353.17.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sat, 06 Aug 2011 09:52:55 +0000 (UTC) Add MFE Support. Signed-off-by: Malcolm Priestley --- 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; }