Skip to contentSkip to conversation

ARM: imx: Remove unused IMX_GPIO_NR() macro

PATCH Applied Fabio Estevam 2 participants 2 messages Jan 19, 2021 – Jan 29, 2021

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: imx: Remove unused IMX_GPIO_NR() macro

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.

---
 arch/arm/mach-imx/hardware.h | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/mach-imx/hardware.h +0 -4
index 7acf7ce467ed..0760fff39a0b 100644
@@ -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__ */
Signature · 7 lines
2.17.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel