Thread (7 messages) 7 messages, 3 authors, 2021-05-10

Re: [PATCH v1] ARM: Drop ARCH_NR_GPIOS definition

From: Andy Shevchenko <hidden>
Date: 2021-03-01 17:15:44
Also in: linux-gpio

On Wed, Feb 24, 2021 at 4:21 PM Andy Shevchenko
[off-list ref] wrote:
On Mon, Oct 12, 2020 at 06:47:09PM +0300, Andy Shevchenko wrote:
quoted
The conditional by the generic header is the same,
hence drop unnecessary duplication.
Any comment on this anybody?
+Cc: Linus and Arnd, maybe you can help to advance this to somewhere?
quoted
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 arch/arm/include/asm/gpio.h | 4 ----
 1 file changed, 4 deletions(-)
diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h
index c50e383358c4..f3bb8a2bf788 100644
--- a/arch/arm/include/asm/gpio.h
+++ b/arch/arm/include/asm/gpio.h
@@ -2,10 +2,6 @@
 #ifndef _ARCH_ARM_GPIO_H
 #define _ARCH_ARM_GPIO_H

-#if CONFIG_ARCH_NR_GPIO > 0
-#define ARCH_NR_GPIOS CONFIG_ARCH_NR_GPIO
-#endif
-
 /* Note: this may rely upon the value of ARCH_NR_GPIOS set in mach/gpio.h */
 #include <asm-generic/gpio.h>

--
2.28.0
--
With Best Regards,
Andy Shevchenko

-- 
With Best Regards,
Andy Shevchenko

_______________________________________________
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