diff options
| author | Tony Lindgren <tony@atomide.com> | 2008-03-03 04:31:32 -0500 |
|---|---|---|
| committer | Tony Lindgren <tony@atomide.com> | 2008-03-05 03:23:20 -0500 |
| commit | 09be7553959c9947f7cbccbe1c3094bb2e3ffd28 (patch) | |
| tree | 763f3b2c145795023c478fbc74e637f4c4bcb86e /include | |
| parent | 0cc0a441163b92fbda5fe1886cb6e9876cf08f40 (diff) | |
ARM: OMAP1: Fix compile for boards depending on old gpio expander
The long term fix is to switch boards to use drivers/gpio/pcf857x.c.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-arm/arch-omap/gpioexpander.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-arm/arch-omap/gpioexpander.h b/include/asm-arm/arch-omap/gpioexpander.h index 7a43b0a912e4..4eed1f80e2fb 100644 --- a/include/asm-arm/arch-omap/gpioexpander.h +++ b/include/asm-arm/arch-omap/gpioexpander.h | |||
| @@ -18,7 +18,18 @@ | |||
| 18 | 18 | ||
| 19 | /* Function Prototypes for GPIO Expander functions */ | 19 | /* Function Prototypes for GPIO Expander functions */ |
| 20 | 20 | ||
| 21 | #ifdef CONFIG_GPIOEXPANDER_OMAP | ||
| 21 | int read_gpio_expa(u8 *, int); | 22 | int read_gpio_expa(u8 *, int); |
| 22 | int write_gpio_expa(u8 , int); | 23 | int write_gpio_expa(u8 , int); |
| 24 | #else | ||
| 25 | static inline int read_gpio_expa(u8 *val, int addr) | ||
| 26 | { | ||
| 27 | return 0; | ||
| 28 | } | ||
| 29 | static inline int write_gpio_expa(u8 val, int addr) | ||
| 30 | { | ||
| 31 | return 0; | ||
| 32 | } | ||
| 33 | #endif | ||
| 23 | 34 | ||
| 24 | #endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */ | 35 | #endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */ |
