MERGE-master-patchset-edits
[linux-2.6/openmoko-kernel.git] / arch / arm / plat-omap / include / mach / gpioexpander.h
blob90444a0d6b1ab72195c41a2f63bf5b9097ce6ed0
1 /*
2 * arch/arm/plat-omap/include/mach/gpioexpander.h
5 * Copyright (C) 2004 Texas Instruments, Inc.
7 * This package is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
11 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
12 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
13 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16 #ifndef __ASM_ARCH_OMAP_GPIOEXPANDER_H
17 #define __ASM_ARCH_OMAP_GPIOEXPANDER_H
19 /* Function Prototypes for GPIO Expander functions */
21 #ifdef CONFIG_GPIOEXPANDER_OMAP
22 int read_gpio_expa(u8 *, int);
23 int write_gpio_expa(u8 , int);
24 #else
25 static inline int read_gpio_expa(u8 *val, int addr)
27 return 0;
29 static inline int write_gpio_expa(u8 val, int addr)
31 return 0;
33 #endif
35 #endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */