Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+11
+11
include/asm-arm/arch-omap/gpioexpander.h
··· 18 18 19 19 /* Function Prototypes for GPIO Expander functions */ 20 20 21 + #ifdef CONFIG_GPIOEXPANDER_OMAP 21 22 int read_gpio_expa(u8 *, int); 22 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 35 #endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */