Skip to contentSkip to conversation

ARM: Drop ARCH_NR_GPIOS definition

PATCH Superseded Andy Shevchenko 3 participants 7 messages Oct 12, 2020 – May 10, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Drop ARCH_NR_GPIOS definition

The conditional by the generic header is the same, hence drop unnecessary duplication.

---
 arch/arm/include/asm/gpio.h | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/include/asm/gpio.h +0 -4
index c50e383358c4..f3bb8a2bf788 100644
@@ -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>
 
Signature · 1 line
2.28.0
#1 lore raw
Quoted 2 lines · Andy Shevchenko

The conditional by the generic header is the same, hence drop unnecessary duplication.

Any comment on this?

Quoted 23 lines
---
 arch/arm/include/asm/gpio.h | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/include/asm/gpio.h +0 -4
index c50e383358c4..f3bb8a2bf788 100644
@@ -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>
 
Signature · 1 line
2.28.0
Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
In reply to Andy Shevchenko
Quoted 2 lines · Andy Shevchenko

The conditional by the generic header is the same, hence drop unnecessary duplication.

Can we get this proceed somehow?

Quoted 23 lines
---
 arch/arm/include/asm/gpio.h | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/include/asm/gpio.h +0 -4
index c50e383358c4..f3bb8a2bf788 100644
@@ -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>
 
Signature · 1 line
2.28.0
Signature · 9 lines
With Best Regards,
Andy Shevchenko



_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#3 lore raw
In reply to Andy Shevchenko
Quoted 2 lines · Andy Shevchenko

The conditional by the generic header is the same, hence drop unnecessary duplication.

Any comment on this anybody?

Quoted 23 lines
---
 arch/arm/include/asm/gpio.h | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/include/asm/gpio.h +0 -4
index c50e383358c4..f3bb8a2bf788 100644
@@ -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>
 
Signature · 1 line
2.28.0
Signature · 9 lines
With Best Regards,
Andy Shevchenko



_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#4 lore raw
Quoted 6 lines · Andy Shevchenko
Quoted 2 lines · Andy Shevchenko

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 29 lines
Quoted 21 lines
---
 arch/arm/include/asm/gpio.h | 4 ----
 1 file changed, 4 deletions(-)
arch/arm/include/asm/gpio.h +0 -5
index c50e383358c4..f3bb8a2bf788 100644
@@ -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>
 
--
Quoted 2 lines

2.28.0

--
With Best Regards,
Andy Shevchenko

Signature · 7 lines
With Best Regards,
Andy Shevchenko

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#5 lore raw
In reply to Andy Shevchenko

Hi Andy,

Quoted 4 lines · Andy Shevchenko

The conditional by the generic header is the same, hence drop unnecessary duplication.

sorry for extremely slow reply.

I think we could merge this into the GPIO tree if Russell is OK with it, alternatively put it in Russell's patch tracker. It looks absolutely correct.

Yours,
Linus Walleij

#6 lore raw
Quoted 8 lines · Linus Walleij

Hi Andy,

Quoted 3 lines · Andy Shevchenko

The conditional by the generic header is the same, hence drop unnecessary duplication.

Quoted 6 lines
Quoted 1 line

sorry for extremely slow reply.

I think we could merge this into the GPIO tree if Russell is OK with it, alternatively put it in Russell's patch tracker. It looks absolutely correct.

I have sent a v2 (same patch, just in case somebody lost this thread).

Signature · 9 lines
With Best Regards,
Andy Shevchenko



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