Skip to contentSkip to conversation

fdt: Include arch specific gpio.h instead of asm-generic/gpio.h

PATCH Superseded Michal Simek 1 participant 2 messages Jul 11, 2012 Library code

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fdt: Include arch specific gpio.h instead of asm-generic/gpio.h

Include arch specific gpio.h instead of asm-generic/gpio.h because several architectures (Microblaze, Blackfin, Nios2, OpenRISC) define gpio functions in header file.
asm-generic/gpio.h can be included in arch specific gpio.h (For example: ARM)

---
v2: Use only arch specific gpio.h
Remove commentary

---
 lib/fdtdec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
lib/fdtdec.c +1 -2
index cc09e06..af17ac1 100644
@@ -24,8 +24,7 @@
 #include <libfdt.h>
 #include <fdtdec.h>
 
-/* we need the generic GPIO interface here */
-#include <asm-generic/gpio.h>
+#include <asm/gpio.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 fdt: Include arch specific gpio.h instead of asm-generic/gpio.h

2012/7/11 Michal Simek <[email protected]>:

Quoted 21 lines

Include arch specific gpio.h instead of asm-generic/gpio.h because several architectures (Microblaze, Blackfin, Nios2, OpenRISC) define gpio functions in header file.
asm-generic/gpio.h can be included in arch specific gpio.h (For example: ARM)

---
v2: Use only arch specific gpio.h
Remove commentary

---
 lib/fdtdec.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
lib/fdtdec.c +0 -0
index cc09e06..af17ac1 100644

lib/fdtdec.c

Quoted 10 lines
lib/fdtdec.c +1 -3
@@ -24,8 +24,7 @@
 #include <libfdt.h>
 #include <fdtdec.h>
 
-/* we need the generic GPIO interface here */
-#include <asm-generic/gpio.h>
+#include <asm/gpio.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
--

Reject.

Forget to change subject.

Sorry.
Michal