From patchwork Wed May 15 11:57:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2571981 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by patchwork1.kernel.org (Postfix) with ESMTP id CB30F3FDBC for ; Wed, 15 May 2013 12:00:23 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id r4FBwYCD005488; Wed, 15 May 2013 06:58:34 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id r4FBwYrp032081; Wed, 15 May 2013 06:58:34 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.2.342.3; Wed, 15 May 2013 06:58:34 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r4FBwYxX014368; Wed, 15 May 2013 06:58:34 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id E097780627; Wed, 15 May 2013 06:58:33 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp52.itg.ti.com (dflp52.itg.ti.com [128.247.22.96]) by linux.omap.com (Postfix) with ESMTP id 294B480626 for ; Wed, 15 May 2013 06:58:32 -0500 (CDT) Received: from red.ext.ti.com (red.ext.ti.com [192.94.93.37]) by dflp52.itg.ti.com (8.13.7/8.13.8) with ESMTP id r4FBwVnP009039 for ; Wed, 15 May 2013 06:58:31 -0500 (CDT) Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by red.ext.ti.com (8.13.7/8.13.7) with ESMTP id r4FBwVdE016369 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 15 May 2013 06:58:31 -0500 Received: from [216.82.242.147:42369] by server-4.bemta-8.messagelabs.com id 8B/90-09999-76873915; Wed, 15 May 2013 11:58:31 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-10.tower-95.messagelabs.com!1368619109!31918488!1 X-Originating-IP: [209.85.160.44] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG, ML_RADAR_SPEW_LINKS_14,spamassassin: X-StarScan-Received: X-StarScan-Version: 6.8.6.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23730 invoked from network); 15 May 2013 11:58:30 -0000 Received: from mail-pb0-f44.google.com (HELO mail-pb0-f44.google.com) (209.85.160.44) by server-10.tower-95.messagelabs.com with RC4-SHA encrypted SMTP; 15 May 2013 11:58:30 -0000 Received: by mail-pb0-f44.google.com with SMTP id wz17so1310778pbc.31 for ; Wed, 15 May 2013 04:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=tY3KrhnKr1vIaL3whmBRJnwkl9eRsv4rYYVebqddnhU=; b=CKueju0N7rj8XP02GP1z2UjTBdojjh9f2lpeZwbeTK7llssrsYOfjekyUWYj0YfN77 N4EWbeXwd8cmrVAHsHDXsJOFDbsH9B3HipczGry2EbhCSUnkfGf8tsfW9WV1X/GEyV93 nBzHuHMd2kXu+Vye0s9Kupj5EMKfe64w1t78gYGOWBjVfTCX6RBs5g1LKvdiCx6e0grU RSt9jkwrvagjZwfTUxZsnX0NP8sx/zecw8c00r6NiE3Z8YOLgwSwChphWmPJUIrNwPDI S5yG7ic61EVyjZ1pYiMqznwz7acj3W39jrYvNYgKjWT1+d16RvuqdKVyHW9OeplCEcVk 0acQ== X-Received: by 10.69.3.65 with SMTP id bu1mr38206964pbd.107.1368619108919; Wed, 15 May 2013 04:58:28 -0700 (PDT) Received: from localhost.localdomain ([59.98.240.128]) by mx.google.com with ESMTPSA id az5sm2610731pbc.18.2013.05.15.04.58.22 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 15 May 2013 04:58:28 -0700 (PDT) From: Lad Prabhakar To: LMML Subject: [PATCH 1/6] media: i2c: ths7303: remove init_enable option from pdata Date: Wed, 15 May 2013 17:27:17 +0530 Message-ID: <1368619042-28252-2-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1368619042-28252-1-git-send-email-prabhakar.csengg@gmail.com> References: <1368619042-28252-1-git-send-email-prabhakar.csengg@gmail.com> CC: DLOS , Mauro Carvalho Chehab , LKML , Hans Verkuil , Laurent Pinchart , Sylwester Nawrocki , Sakari Ailus , Guennadi Liakhovetski X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com From: Lad, Prabhakar This patch removes init_enable option from pdata, the init_enable was intended that the device should start streaming video immediately but ideally the bridge drivers should call s_stream explicitly for such devices to start video. Signed-off-by: Lad, Prabhakar Cc: Hans Verkuil Cc: Laurent Pinchart Cc: Mauro Carvalho Chehab Cc: Guennadi Liakhovetski Cc: Sylwester Nawrocki Cc: Sakari Ailus Cc: linux-kernel@vger.kernel.org Cc: davinci-linux-open-source@linux.davincidsp.com --- drivers/media/i2c/ths7303.c | 4 +--- include/media/ths7303.h | 2 -- 2 files changed, 1 insertions(+), 5 deletions(-) diff --git a/drivers/media/i2c/ths7303.c b/drivers/media/i2c/ths7303.c index 65853ee..8cddcd0 100644 --- a/drivers/media/i2c/ths7303.c +++ b/drivers/media/i2c/ths7303.c @@ -356,9 +356,7 @@ static int ths7303_setup(struct v4l2_subdev *sd) int ret; u8 mask; - state->stream_on = pdata->init_enable; - - mask = state->stream_on ? 0xff : 0xf8; + mask = 0xf8; ret = ths7303_write(sd, THS7303_CHANNEL_1, pdata->ch_1 & mask); if (ret) diff --git a/include/media/ths7303.h b/include/media/ths7303.h index 980ec51..a7b4929 100644 --- a/include/media/ths7303.h +++ b/include/media/ths7303.h @@ -30,13 +30,11 @@ * @ch_1: Bias value for channel one. * @ch_2: Bias value for channel two. * @ch_3: Bias value for channel three. - * @init_enable: initalize on init. */ struct ths7303_platform_data { u8 ch_1; u8 ch_2; u8 ch_3; - u8 init_enable; }; #endif