From patchwork Mon Jun 10 05:53:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 2695791 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by patchwork1.kernel.org (Postfix) with ESMTP id 819DC3FD4F for ; Mon, 10 Jun 2013 05:55:33 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r5A5rxlB012077; Mon, 10 Jun 2013 00:54:00 -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 r5A5rxID006985; Mon, 10 Jun 2013 00:53:59 -0500 Received: from dlelxv24.itg.ti.com (172.17.1.199) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Mon, 10 Jun 2013 00:53:59 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv24.itg.ti.com (8.13.8/8.13.8) with ESMTP id r5A5rwfI012379; Mon, 10 Jun 2013 00:53:58 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 709218062B; Mon, 10 Jun 2013 00:53:58 -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 F14A380626 for ; Mon, 10 Jun 2013 00:53:52 -0500 (CDT) Received: from neches.ext.ti.com (neches.ext.ti.com [192.91.81.29]) by dflp52.itg.ti.com (8.13.7/8.13.8) with ESMTP id r5A5rqpE001084 for ; Mon, 10 Jun 2013 00:53:52 -0500 (CDT) Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by neches.ext.ti.com (8.13.7/8.13.7) with ESMTP id r5A5rq3r029509 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 10 Jun 2013 00:53:52 -0500 Received: from [216.82.242.131:38849] by server-5.bemta-8.messagelabs.com id DB/F4-07470-0F965B15; Mon, 10 Jun 2013 05:53:52 +0000 X-Env-Sender: dmitry.torokhov@gmail.com X-Msg-Ref: server-16.tower-76.messagelabs.com!1370843630!33272248!1 X-Originating-IP: [209.85.160.49] 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.9.6; banners=-,-,- X-VirusChecked: Checked Received: (qmail 31757 invoked from network); 10 Jun 2013 05:53:51 -0000 Received: from mail-pb0-f49.google.com (HELO mail-pb0-f49.google.com) (209.85.160.49) by server-16.tower-76.messagelabs.com with RC4-SHA encrypted SMTP; 10 Jun 2013 05:53:51 -0000 Received: by mail-pb0-f49.google.com with SMTP id jt11so6820255pbb.22 for ; Sun, 09 Jun 2013 22:53:50 -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:in-reply-to:references; bh=187tKec4v7ObEo6ur4zmJIeRERgOTXmcGGahwh10VXo=; b=WGx3H7QXJaL/4JIzlZUz0MLypZSpuZAFJCo0R/L1kqN+Um2fleiOf4gy2HDAflUErw Nol75MSEGmfIDBNmGXj6XTnOFe2zuFFDutWEPhP8zICB0dFSJhcrB4HSPCqy6vsTWntR MoICyidXLg6Nybsxz381Msaf+pRBcz8kU1ft8qP/MF5K83fM917xoAz4XRDyrGgV3dnJ M7oja6U3SUndHtPa9EqYEmVZ6oC6tykQv2QJ3ulxTlsYDOqGXcAk/r2fUHuszfnTpmQn TxpXXonHehtVnrafNReBIqdtNl4AJXsnARDo+3gHmKjAA8wWEBszJUYCPehcBCBpOuvu EKhQ== X-Received: by 10.68.226.39 with SMTP id rp7mr8426515pbc.97.1370843629990; Sun, 09 Jun 2013 22:53:49 -0700 (PDT) Received: from mailhub.coreip.homeip.net (c-67-188-112-76.hsd1.ca.comcast.net. [67.188.112.76]) by mx.google.com with ESMTPSA id dr6sm14156838pac.11.2013.06.09.22.53.48 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 09 Jun 2013 22:53:49 -0700 (PDT) From: Dmitry Torokhov To: Subject: [PATCH 2/3] Input: tps6507x-ts - remove vref from platform data Date: Sun, 9 Jun 2013 22:53:46 -0700 Message-ID: <1370843627-30823-2-git-send-email-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1370843627-30823-1-git-send-email-dmitry.torokhov@gmail.com> References: <1370843627-30823-1-git-send-email-dmitry.torokhov@gmail.com> CC: 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 Although defined in platform data, vref is not used anywhere. Also remove model, irq, and clear_penirq as they are not used either. Signed-off-by: Dmitry Torokhov --- drivers/input/touchscreen/tps6507x-ts.c | 5 ----- include/linux/input/tps6507x-ts.h | 1 - 2 files changed, 6 deletions(-) diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c index c981ccf..d3c2967 100644 --- a/drivers/input/touchscreen/tps6507x-ts.c +++ b/drivers/input/touchscreen/tps6507x-ts.c @@ -44,12 +44,8 @@ struct tps6507x_ts { struct delayed_work work; struct ts_event tc; struct tps6507x_dev *mfd; - u16 model; u16 min_pressure; - int irq; - void (*clear_penirq)(void); unsigned long poll_period; /* ms */ - int vref; /* non-zero to leave vref on */ bool pendown; }; @@ -291,7 +287,6 @@ static int tps6507x_ts_probe(struct platform_device *pdev) if (init_data) { tsc->poll_period = init_data->poll_period; - tsc->vref = init_data->vref; tsc->min_pressure = init_data->min_pressure; input_dev->id.vendor = init_data->vendor; input_dev->id.product = init_data->product; diff --git a/include/linux/input/tps6507x-ts.h b/include/linux/input/tps6507x-ts.h index ab14403..b433df8 100644 --- a/include/linux/input/tps6507x-ts.h +++ b/include/linux/input/tps6507x-ts.h @@ -14,7 +14,6 @@ /* Board specific touch screen initial values */ struct touchscreen_init_data { int poll_period; /* ms */ - int vref; /* non-zero to leave vref on */ __u16 min_pressure; /* min reading to be treated as a touch */ __u16 vendor; __u16 product;