From patchwork Fri Jan 8 06:42:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 7982881 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 794099F54F for ; Fri, 8 Jan 2016 06:42:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 91F2520172 for ; Fri, 8 Jan 2016 06:42:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B22BF20149 for ; Fri, 8 Jan 2016 06:42:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbcAHGma (ORCPT ); Fri, 8 Jan 2016 01:42:30 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:35363 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752069AbcAHGm3 (ORCPT ); Fri, 8 Jan 2016 01:42:29 -0500 Received: by mail-pf0-f180.google.com with SMTP id 65so5402784pff.2; Thu, 07 Jan 2016 22:42:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=RVaFKfDna89ETjEKV1BGRnRUsBS0j+4T/RZbgNnVTMU=; b=xHS57c9DnmcqTbORKEjBitI4/8eAVWaiI7KuvRpUZt3rSQ5qqEn6H2zQsxs2ADV2Wb P9z+v4uNjlooysb11Ox9hGBIPIrqhVpnmbuE/njPQEyEv/4+22q6gvTvNOZXFNytbp8Z l9xdlOG4yhFIOS2JihRdWe+unEj4IZH8ldNH1kgbValcpb+l6EE9D8aOtP2t/7zcpg0U IyROHrFvsPS8se6TihYB7IYYqa/UYy8kJkfJbD/WR35Ri0h0Tl1zsLEkxclS/KP2VAvu X4hPAAelOIhzblfnzSCAmZB4EW6ezNl9ZfUVNiQOk0Y5MnsQD3a53kQn1iZSp8E2CAQM NFsw== X-Received: by 10.98.66.74 with SMTP id p71mr2119911pfa.105.1452235349546; Thu, 07 Jan 2016 22:42:29 -0800 (PST) Received: from dtor-ws ([2620:0:1000:1301:3438:d31f:8a03:32e6]) by smtp.gmail.com with ESMTPSA id l14sm1973963pfb.73.2016.01.07.22.42.28 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 07 Jan 2016 22:42:28 -0800 (PST) Date: Thu, 7 Jan 2016 22:42:27 -0800 From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: Aaro Koskinen , Tony Lindgren , Janusz Krzysztofik , linux-kernel@vger.kernel.org Subject: [PATCH] Input: omap-keypad - remove set_col_gpio_val() and get_row_gpio_val() Message-ID: <20160108064227.GA30991@dtor-ws> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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, RP_MATCHES_RCVD, 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 Commit f799a3d8fe170159257b75c1baf48a7c1f625d1d ("Input: omap-keypad: Remove dependencies to mach includes") removed users of the above functions, but left them in the code. Signed-off-by: Dmitry Torokhov --- drivers/input/keyboard/omap-keypad.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index 8dc34ee..146b26f 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -64,31 +64,6 @@ static DECLARE_TASKLET_DISABLED(kp_tasklet, omap_kp_tasklet, 0); static unsigned int *row_gpios; static unsigned int *col_gpios; -#ifdef CONFIG_ARCH_OMAP2 -static void set_col_gpio_val(struct omap_kp *omap_kp, u8 value) -{ - int col; - - for (col = 0; col < omap_kp->cols; col++) - gpio_set_value(col_gpios[col], value & (1 << col)); -} - -static u8 get_row_gpio_val(struct omap_kp *omap_kp) -{ - int row; - u8 value = 0; - - for (row = 0; row < omap_kp->rows; row++) { - if (gpio_get_value(row_gpios[row])) - value |= (1 << row); - } - return value; -} -#else -#define set_col_gpio_val(x, y) do {} while (0) -#define get_row_gpio_val(x) 0 -#endif - static irqreturn_t omap_kp_interrupt(int irq, void *dev_id) { /* disable keyboard interrupt and schedule for handling */