From patchwork Mon Mar 23 12:18:28 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: 46188 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 18734214B0 for ; Mon, 23 Mar 2015 12:19:14 +0000 (UTC) Received: by lamq1 with SMTP id q1sf26920622lam.3 for ; Mon, 23 Mar 2015 05:19:12 -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=zzzXf0/cZmYunFc7TO4IOB5T87aONkiPtDviq3g9ewU=; b=RJc4fxxlS5CAmkLMqIXas2wMmvu0L6qih/Jcjkwt26J8RN872BvUbkxYaMr+PcSXCV bVMoV4QTgLkh+BKA6QGFKbmwFXxOa5pu5GkdzshS/jb5f62T0mxufdko4oWJ/LezQaIx 3EvfCn0S8uTJqJ7u4uP646qpbRU9JLnfexo6gKYNWvHBm9PlD/08kMzmoqYx3u721xEy 28roLWvJWCs3exBdgv5D0jFKFYFBFb/459N4j17iLBFJ/zuPbG7GXnyC0r/SFDTk2yLQ 5ygKGWX8tyeNGBh6h61IDJQ9IJyQhtC3OTiMPt08gDROkfwstwPB/V/gWiU7CtEHOnXw n9ng== X-Gm-Message-State: ALoCoQlWQP0WE0U05qdh7Qx2vu1nKliRaz5RblMxdQYM6paOcy6E8kzwLMbALBDyjFBXohizduY9 X-Received: by 10.152.27.134 with SMTP id t6mr15490063lag.5.1427113152666; Mon, 23 Mar 2015 05:19:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.130 with SMTP id v2ls548525lae.98.gmail; Mon, 23 Mar 2015 05:19:12 -0700 (PDT) X-Received: by 10.152.5.170 with SMTP id t10mr83285637lat.43.1427113152455; Mon, 23 Mar 2015 05:19:12 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id wn6si504276lac.74.2015.03.23.05.19.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2015 05:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by labe2 with SMTP id e2so57077274lab.3 for ; Mon, 23 Mar 2015 05:19:12 -0700 (PDT) X-Received: by 10.152.116.11 with SMTP id js11mr61935781lab.106.1427113152350; Mon, 23 Mar 2015 05:19:12 -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 k9csp789358lbq; Mon, 23 Mar 2015 05:19:11 -0700 (PDT) X-Received: by 10.66.119.37 with SMTP id kr5mr213308057pab.136.1427113150427; Mon, 23 Mar 2015 05:19:10 -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.09; Mon, 23 Mar 2015 05:19:10 -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 S1752484AbbCWMSp (ORCPT + 1 other); Mon, 23 Mar 2015 08:18:45 -0400 Received: from mail-la0-f41.google.com ([209.85.215.41]:33724 "EHLO mail-la0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752444AbbCWMSn (ORCPT ); Mon, 23 Mar 2015 08:18:43 -0400 Received: by labto5 with SMTP id to5so24742067lab.0 for ; Mon, 23 Mar 2015 05:18:41 -0700 (PDT) X-Received: by 10.152.10.66 with SMTP id g2mr83471004lab.44.1427113121598; Mon, 23 Mar 2015 05:18:41 -0700 (PDT) Received: from localhost ([195.238.92.128]) by mx.google.com with ESMTPSA id qw1sm149480lbb.21.2015.03.23.05.18.40 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 23 Mar 2015 05:18:41 -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 6/8] gpio: omap: get rid of GPIO_BIT() macro Date: Mon, 23 Mar 2015 14:18:28 +0200 Message-Id: <1427113110-20813-7-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.42 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_BIT() 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 628a132..dd7934a 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -82,7 +82,6 @@ struct gpio_bank { }; #define GPIO_INDEX(bank, gpio) (gpio % bank->width) -#define GPIO_BIT(bank, gpio) (BIT(GPIO_INDEX(bank, gpio))) #define GPIO_MOD_CTRL_BIT BIT(0) #define BANK_USED(bank) (bank->mod_usage || bank->irq_usage)