From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751200AbdAMEVL (ORCPT ); Thu, 12 Jan 2017 23:21:11 -0500 Received: from lelnx194.ext.ti.com ([198.47.27.80]:21181 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089AbdAMEVJ (ORCPT ); Thu, 12 Jan 2017 23:21:09 -0500 From: Keerthy To: , CC: , , , , Subject: [PATCH V2 6/6] gpio: davinci: Remove redundant macros Date: Fri, 13 Jan 2017 09:50:15 +0530 Message-ID: <1484281215-24576-7-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484281215-24576-1-git-send-email-j-keerthy@ti.com> References: <1484281215-24576-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some of the macros were needed as per old driver design. With the current implementation they are unwanted. Hence remove them. Signed-off-by: Keerthy --- include/linux/platform_data/gpio-davinci.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/linux/platform_data/gpio-davinci.h b/include/linux/platform_data/gpio-davinci.h index 90ae19c..f922601 100644 --- a/include/linux/platform_data/gpio-davinci.h +++ b/include/linux/platform_data/gpio-davinci.h @@ -45,14 +45,6 @@ struct davinci_gpio_controller { unsigned int base; }; -/* - * basic gpio routines - */ -#define GPIO(X) (X) /* 0 <= X <= (DAVINCI_N_GPIO - 1) */ - -/* Convert GPIO signal to GPIO pin number */ -#define GPIO_TO_PIN(bank, gpio) (16 * (bank) + (gpio)) - static inline u32 __gpio_mask(unsigned gpio) { return 1 << (gpio % 32); -- 1.9.1