From patchwork Sat Jun 15 16:34:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2727531 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1B9AA9F8E4 for ; Sat, 15 Jun 2013 16:35:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 395AA20178 for ; Sat, 15 Jun 2013 16:35:57 +0000 (UTC) Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7CD6820177 for ; Sat, 15 Jun 2013 16:35:53 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id r5FGYbbN017715; Sat, 15 Jun 2013 11:34:37 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r5FGYbuF006699; Sat, 15 Jun 2013 11:34:37 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Sat, 15 Jun 2013 11:34:37 -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 r5FGYbwa010907; Sat, 15 Jun 2013 11:34:37 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id EE14880627; Sat, 15 Jun 2013 11:34:36 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp51.itg.ti.com (dflp51.itg.ti.com [128.247.22.94]) by linux.omap.com (Postfix) with ESMTP id 755C080626 for ; Sat, 15 Jun 2013 11:34:35 -0500 (CDT) Received: from white.ext.ti.com (white.ext.ti.com [192.94.93.38]) by dflp51.itg.ti.com (8.13.7/8.13.8) with ESMTP id r5FGYYIU017791 for ; Sat, 15 Jun 2013 11:34:34 -0500 (CDT) Received: from mail6.bemta7.messagelabs.com (mail6.bemta7.messagelabs.com [216.82.255.55]) by white.ext.ti.com (8.13.7/8.13.7) with ESMTP id r5FGYYb3002145 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 15 Jun 2013 11:34:34 -0500 Received: from [216.82.253.67:56454] by server-14.bemta-7.messagelabs.com id 7F/01-30301-A979CB15; Sat, 15 Jun 2013 16:34:34 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-13.tower-158.messagelabs.com!1371314072!5864195!1 X-Originating-IP: [209.85.192.177] X-SpamReason: No, hits=0.2 required=7.0 tests=ML_RADAR_SPEW_LINKS_14, RCVD_ILLEGAL_IP,spamassassin: X-StarScan-Received: X-StarScan-Version: 6.9.6; banners=-,-,- X-VirusChecked: Checked Received: (qmail 13466 invoked from network); 15 Jun 2013 16:34:33 -0000 Received: from mail-pd0-f177.google.com (HELO mail-pd0-f177.google.com) (209.85.192.177) by server-13.tower-158.messagelabs.com with RC4-SHA encrypted SMTP; 15 Jun 2013 16:34:33 -0000 Received: by mail-pd0-f177.google.com with SMTP id p10so1492672pdj.36 for ; Sat, 15 Jun 2013 09:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=FVkn5xT/P1VeaJFToic9dy3MxibYx8o54xGng2Ol0SA=; b=c43j7rpXJXhV2jZOUhsI0oRNW3YinyDTrPQak76o2zH6ZYXxkCh1J6Knl0MrXef9UU /w69h2ieoxY1PzBwKizSgm9d2R4rCem63oj9uT78qXLwSj320MxRZbrqe0HzdQJXgqS+ 5UubXbZXTbQJiJmQZUvib1TAQYkP67iW1oN5GFCy3m3f9bvqCQSdK4UvKULAyqSUzkAM 7Rqgq7i35mfgI/tJVvdF+A+FbqLW/HjlNAINcFjPhL2JAU9WqhHdLljOrE6NMDzESGU/ sCbGK/x1tev5yc31qR3/3Wt7YySj18hBK1PN3kOZZhy2F34PigIO3t7/Bls7DD5oCrKM Se+Q== X-Received: by 10.68.194.169 with SMTP id hx9mr6707167pbc.210.1371314072581; Sat, 15 Jun 2013 09:34:32 -0700 (PDT) Received: from localhost.localdomain ([1.23.213.122]) by mx.google.com with ESMTPSA id al2sm6826649pbc.25.2013.06.15.09.34.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 15 Jun 2013 09:34:31 -0700 (PDT) From: Prabhakar Lad To: Hans Verkuil , Mauro Carvalho Chehab , LMML , Laurent Pinchart Subject: [PATCH] media: i2c: ths7303: remove unused member driver_data Date: Sat, 15 Jun 2013 22:04:10 +0530 Message-ID: <1371314050-25866-1-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.9.5 CC: DLOS , LKML 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 X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: "Lad, Prabhakar" This patch removes the driver_data member from ths7303_state structure. The driver_data member was intended to differentiate between ths7303 and ths7353 chip and get the g_chip_ident, But as of now g_chip_ident is obsolete, so there is no need of driver_data. Signed-off-by: Lad, Prabhakar --- drivers/media/i2c/ths7303.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/media/i2c/ths7303.c b/drivers/media/i2c/ths7303.c index 2e17abc..0a2dacb 100644 --- a/drivers/media/i2c/ths7303.c +++ b/drivers/media/i2c/ths7303.c @@ -38,7 +38,6 @@ struct ths7303_state { struct v4l2_bt_timings bt; int std_id; int stream_on; - int driver_data; }; enum ths7303_filter_mode { @@ -355,9 +354,6 @@ static int ths7303_probe(struct i2c_client *client, sd = &state->sd; v4l2_i2c_subdev_init(sd, client, &ths7303_ops); - /* store the driver data to differntiate the chip */ - state->driver_data = (int)id->driver_data; - /* set to default 480I_576I filter mode */ if (ths7303_setval(sd, THS7303_FILTER_MODE_480I_576I) < 0) { v4l_err(client, "Setting to 480I_576I filter mode failed!\n");