From patchwork Mon Mar 23 12:18:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Grygorii.Strashko@linaro.org" X-Patchwork-Id: 46190 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68F2F214B0 for ; Mon, 23 Mar 2015 12:19:22 +0000 (UTC) Received: by wesk11 with SMTP id k11sf22068319wes.3 for ; Mon, 23 Mar 2015 05:19:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=/yeH3nC38FTjcbJzP7avWnXRebAs/ihdZ0hAezToYQk=; b=if9FHNmnlSr5TYLz5RtNHIPZVVi5XKrPk3imNGhKUPMwMeNx59CqX0h/G1uSGU9rmK /8znbBLPdgLitHDYet0OClhY0ZQpblg28/KBrdpaIhj1hwB6wmLTbGe/Udu/fcCdPOor r9oCSIwyCxaJeGuQ07saW4D4dVINBQSpivJMMi19aNmYPUmJLfTBL3BVixxZVHmhXlW2 eSbafZSqKolzC1H1ez6Itiz105v/1HoIXWYNJ5/IaM/xmlgBsMWiiGVBRtE4R0JjTOjS fKbavJjE+sLYnPST5cFRRj5YUHRGw3lagAjHVjUr+oB117a3a3bkvHaYMm98ZuQSU1Yy JOZg== X-Gm-Message-State: ALoCoQmZuvwasOsF/JAMKOqREuCuxUbOdVeldHNYhIVyo4jXDAg3B52D3j2wfjpRP11nD+pcmvnR X-Received: by 10.194.201.10 with SMTP id jw10mr15518915wjc.3.1427113161745; Mon, 23 Mar 2015 05:19:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.199 with SMTP id y7ls70149lal.63.gmail; Mon, 23 Mar 2015 05:19:21 -0700 (PDT) X-Received: by 10.152.26.136 with SMTP id l8mr84236303lag.109.1427113161361; Mon, 23 Mar 2015 05:19:21 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id t10si532337lbf.36.2015.03.23.05.19.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2015 05:19:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by labto5 with SMTP id to5so24755836lab.0 for ; Mon, 23 Mar 2015 05:19:21 -0700 (PDT) X-Received: by 10.152.22.67 with SMTP id b3mr82235822laf.117.1427113161258; Mon, 23 Mar 2015 05:19:21 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp789437lbq; Mon, 23 Mar 2015 05:19:20 -0700 (PDT) X-Received: by 10.70.130.37 with SMTP id ob5mr39024980pdb.54.1427113155112; Mon, 23 Mar 2015 05:19:15 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cb5si844193pbb.125.2015.03.23.05.19.13; Mon, 23 Mar 2015 05:19:15 -0700 (PDT) Received-SPF: none (google.com: linux-gpio-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752501AbbCWMSt (ORCPT + 1 other); Mon, 23 Mar 2015 08:18:49 -0400 Received: from mail-lb0-f176.google.com ([209.85.217.176]:34503 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752481AbbCWMSq (ORCPT ); Mon, 23 Mar 2015 08:18:46 -0400 Received: by lbbsy1 with SMTP id sy1so116876729lbb.1 for ; Mon, 23 Mar 2015 05:18:44 -0700 (PDT) X-Received: by 10.152.245.41 with SMTP id xl9mr66068852lac.24.1427113124281; Mon, 23 Mar 2015 05:18:44 -0700 (PDT) Received: from localhost ([195.238.92.128]) by mx.google.com with ESMTPSA id yt9sm140659lab.44.2015.03.23.05.18.43 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 23 Mar 2015 05:18:43 -0700 (PDT) From: To: Javier Martinez Canillas , Linus Walleij , Alexandre Courbot , ssantosh@kernel.org, Kevin Hilman , tony@atomide.com Cc: linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Grygorii Strashko Subject: [PATCH v2 8/8] gpio: omap: get rid of GPIO_INDEX() macro Date: Mon, 23 Mar 2015 14:18:30 +0200 Message-Id: <1427113110-20813-9-git-send-email-grygorii.strashko@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427113110-20813-1-git-send-email-grygorii.strashko@linaro.org> References: <1427113110-20813-1-git-send-email-grygorii.strashko@linaro.org> Sender: linux-gpio-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-gpio@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: grygorii.strashko@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Grygorii Strashko Now OMAP GPIO driver prepared for GPIO_INDEX() macro removing. Do It ;) Tested-by: Tony Lindgren Tested-by: Aaro Koskinen Acked-by: Santosh Shilimkar Acked-by: Javier Martinez Canillas Signed-off-by: Grygorii Strashko --- drivers/gpio/gpio-omap.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 615e950..cd1d5bf 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -81,7 +81,6 @@ struct gpio_bank { struct omap_gpio_reg_offs *regs; }; -#define GPIO_INDEX(bank, gpio) (gpio % bank->width) #define GPIO_MOD_CTRL_BIT BIT(0) #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage) @@ -492,14 +491,6 @@ static int omap_gpio_irq_type(struct irq_data *d, unsigned type) if (!BANK_USED(bank)) pm_runtime_get_sync(bank->dev); -#ifdef CONFIG_ARCH_OMAP1 - if (d->irq > IH_MPUIO_BASE) { - unsigned gpio = 0; - gpio = OMAP_MPUIO(d->irq - IH_MPUIO_BASE); - offset = GPIO_INDEX(bank, gpio); - } -#endif - if (type & ~IRQ_TYPE_SENSE_MASK) return -EINVAL;