ARM: Drop ARCH_NR_GPIOS definition
Subsystems (2)
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
@@ -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
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
Signed-off-by Andy Shevchenko <[email protected]>--- arch/arm/include/asm/gpio.h | 4 ---- 1 file changed, 4 deletions(-)arch/arm/include/asm/gpio.h +0
-4@@ -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
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
Signed-off-by Andy Shevchenko <[email protected]>--- arch/arm/include/asm/gpio.h | 4 ---- 1 file changed, 4 deletions(-)arch/arm/include/asm/gpio.h +0
-4@@ -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
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
Signed-off-by Andy Shevchenko <[email protected]>--- arch/arm/include/asm/gpio.h | 4 ---- 1 file changed, 4 deletions(-)arch/arm/include/asm/gpio.h +0
-4@@ -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
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
Signed-off-by Andy Shevchenko <[email protected]>--- arch/arm/include/asm/gpio.h | 4 ---- 1 file changed, 4 deletions(-)arch/arm/include/asm/gpio.h +0
-5@@ -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
Hi Andy,
Quoted 4 lines · Andy Shevchenko
The conditional by the generic header is the same, hence drop unnecessary duplication.
Signed-off-by Andy Shevchenko <[email protected]>
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
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
Signed-off-by Andy Shevchenko <[email protected]>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