From patchwork Tue Jun 7 16:21:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "istvan_v@mailbox.hu" X-Patchwork-Id: 857652 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p57GLFN0028006 for ; Tue, 7 Jun 2011 16:21:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754951Ab1FGQVM (ORCPT ); Tue, 7 Jun 2011 12:21:12 -0400 Received: from mail.juropnet.hu ([212.24.188.131]:37230 "EHLO mail.juropnet.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754071Ab1FGQVM (ORCPT ); Tue, 7 Jun 2011 12:21:12 -0400 Received: from [94.248.227.150] (helo=linux-mrjj.localnet) by mail.juropnet.hu with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1QTz1b-0006mD-8V for linux-media@vger.kernel.org; Tue, 07 Jun 2011 18:21:10 +0200 From: Istvan Varga To: linux-media@vger.kernel.org Subject: [PATCH 4/4] cx88: replaced duplicated code with function call User-Agent: KMail/1.12.2 (Linux/2.6.31.5-0.1-desktop; KDE/4.3.1; x86_64; ; ) MIME-Version: 1.0 Date: Tue, 7 Jun 2011 18:21:02 +0200 Message-Id: <201106071821.02820.istvan_v@mailbox.hu> X-Host-Lookup-Failed: Reverse DNS lookup failed for 94.248.227.150 (failed) X-Spam-Score: -4.3 (----) X-Scan-Signature: a8d7f907323f8ec26b6b3b1b275d51f2 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]); Tue, 07 Jun 2011 16:21:15 +0000 (UTC) The following patch replaces code to reset the XC3028 tuner with a call to the tuner reset callback. Signed-off-by: Istvan Varga --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -uNr xc4000_orig/drivers/media/video/cx88/cx88-cards.c xc4000/drivers/media/video/cx88/cx88-cards.c --- xc4000_orig/drivers/media/video/cx88/cx88-cards.c 2011-06-07 18:02:28.000000000 +0200 +++ xc4000/drivers/media/video/cx88/cx88-cards.c 2011-06-07 18:09:01.000000000 +0200 @@ -3245,13 +3245,7 @@ case CX88_BOARD_WINFAST_TV2000_XP_GLOBAL: case CX88_BOARD_WINFAST_DTV1800H: - /* GPIO 12 (xc3028 tuner reset) */ - cx_set(MO_GP1_IO, 0x1010); - mdelay(50); - cx_clear(MO_GP1_IO, 0x10); - mdelay(50); - cx_set(MO_GP1_IO, 0x10); - mdelay(50); + cx88_xc3028_winfast1800h_callback(core, XC2028_TUNER_RESET, 0); break; case CX88_BOARD_WINFAST_DTV1800H_XC4000: