[PATCH] ARM: imx: Remove unused IMX_GPIO_NR() macro

Subsystems: arm port, the rest

STALE2013d

2 messages, 2 authors, 2021-01-29 · open the first message on its own page

[PATCH] ARM: imx: Remove unused IMX_GPIO_NR() macro

From: Fabio Estevam <festevam@gmail.com>
Date: 2021-01-19 00:46:48

The IMX_GPIO_NR() macro was only used by non-DT i.MX platforms.

As i.MX transitioned to a DT-only platform, get rid of this
unused macro.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 arch/arm/mach-imx/hardware.h | 4 ----
 1 file changed, 4 deletions(-)
diff --git a/arch/arm/mach-imx/hardware.h b/arch/arm/mach-imx/hardware.h
index 7acf7ce467ed..0760fff39a0b 100644
--- a/arch/arm/mach-imx/hardware.h
+++ b/arch/arm/mach-imx/hardware.h
@@ -106,8 +106,4 @@
 	.type = _type,							\
 }
 
-/* There's an off-by-one between the gpio bank number and the gpiochip */
-/* range e.g. GPIO_1_5 is gpio 5 under linux */
-#define IMX_GPIO_NR(bank, nr)		(((bank) - 1) * 32 + (nr))
-
 #endif /* __ASM_ARCH_MXC_HARDWARE_H__ */
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Re: [PATCH] ARM: imx: Remove unused IMX_GPIO_NR() macro

From: Shawn Guo <shawnguo@kernel.org>
Date: 2021-01-29 08:49:00

On Mon, Jan 18, 2021 at 09:42:51PM -0300, Fabio Estevam wrote:
The IMX_GPIO_NR() macro was only used by non-DT i.MX platforms.

As i.MX transitioned to a DT-only platform, get rid of this
unused macro.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Applied, thanks.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help