projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cc0a44
)
ARM: OMAP1: Fix compile for boards depending on old gpio expander
author
Tony Lindgren
<tony@atomide.com>
Mon, 3 Mar 2008 09:31:32 +0000
(
01:31
-0800)
committer
Tony Lindgren
<tony@atomide.com>
Wed, 5 Mar 2008 08:23:20 +0000
(10:23 +0200)
The long term fix is to switch boards to use drivers/gpio/pcf857x.c.
Signed-off-by: Tony Lindgren <tony@atomide.com>
include/asm-arm/arch-omap/gpioexpander.h
patch
|
blob
|
history
diff --git
a/include/asm-arm/arch-omap/gpioexpander.h
b/include/asm-arm/arch-omap/gpioexpander.h
index
7a43b0a
..
4eed1f8
100644
(file)
--- a/
include/asm-arm/arch-omap/gpioexpander.h
+++ b/
include/asm-arm/arch-omap/gpioexpander.h
@@
-18,7
+18,18
@@
/* Function Prototypes for GPIO Expander functions */
+#ifdef CONFIG_GPIOEXPANDER_OMAP
int read_gpio_expa(u8 *, int);
int write_gpio_expa(u8 , int);
+#else
+static inline int read_gpio_expa(u8 *val, int addr)
+{
+ return 0;
+}
+static inline int write_gpio_expa(u8 val, int addr)
+{
+ return 0;
+}
+#endif
#endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */