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: 6071741 Return-Path: X-Original-To: patchwork-linux-omap@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 9E6DA9F39E for ; Mon, 23 Mar 2015 12:18:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BFE93201F2 for ; Mon, 23 Mar 2015 12:18:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B73B2020F for ; Mon, 23 Mar 2015 12:18:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752424AbbCWMSr (ORCPT ); Mon, 23 Mar 2015 08:18:47 -0400 Received: from mail-lb0-f177.google.com ([209.85.217.177]:36394 "EHLO mail-lb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752446AbbCWMSn (ORCPT ); Mon, 23 Mar 2015 08:18:43 -0400 Received: by lbbug6 with SMTP id ug6so22350131lbb.3 for ; Mon, 23 Mar 2015 05:18:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mbuXZ4ayv5U7vFl3cRis4mzKbs4bdFsgJspOvCq0x00=; b=XlvvJGIWjH6KhZrU+IOtCO3zNEXf2+ubYSzALpcAezjjdVp1QX5QbYr4PjW2j7Lv6c fjCRpogupk7+0b4rwUJ+oyP2vYlQz4UpTBbQKOyVX2w2EH3dZeeTF/tj8CFkx95oPN+s EahEMSkt3rwYi+cphUp1F98+bvgsPOUimrh6Fz0XD1CClCWw+Ribs/YdwLEAc9JAPLIx CJpHSPTqAkFvCvN1adtoNZ81JYFWKz+WKgC7tg5pKdo6RVeUK+BZtYsxLnxQ3mdwVGEK CDtNCrrpEMc95E11pO0+TH9RNpDjnGpq6qNKBAQRV2ZHhfmuohHGzL8nWPFiswp4Ag33 solw== X-Gm-Message-State: ALoCoQl8V2uY9BRITMSr3iXCI5aF2I6quT/vK5IF7IM5dXHMOB20mzzVX3vd9HXJwscZEra5NhPZ 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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: 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)