ARM: imx: Remove unused IMX_GPIO_NR() macro
authorFabio Estevam <festevam@gmail.com>
Tue, 19 Jan 2021 00:42:51 +0000 (21:42 -0300)
committerShawn Guo <shawnguo@kernel.org>
Fri, 29 Jan 2021 08:47:25 +0000 (16:47 +0800)
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/hardware.h

index 7acf7ce..0760fff 100644 (file)
        .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__ */