| Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 1 | /* | 
|  | 2 | * linux/include/asm-arm/arch-omap/gpioexpander.h | 
|  | 3 | * | 
|  | 4 | * | 
|  | 5 | * Copyright (C) 2004 Texas Instruments, Inc. | 
|  | 6 | * | 
|  | 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. | 
|  | 10 | * | 
|  | 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. | 
|  | 14 | */ | 
|  | 15 |  | 
|  | 16 | #ifndef __ASM_ARCH_OMAP_GPIOEXPANDER_H | 
|  | 17 | #define __ASM_ARCH_OMAP_GPIOEXPANDER_H | 
|  | 18 |  | 
|  | 19 | /* Function Prototypes for GPIO Expander functions */ | 
|  | 20 |  | 
| Tony Lindgren | 09be755 | 2008-03-03 01:31:32 -0800 | [diff] [blame] | 21 | #ifdef CONFIG_GPIOEXPANDER_OMAP | 
| Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 22 | int read_gpio_expa(u8 *, int); | 
|  | 23 | int write_gpio_expa(u8 , int); | 
| Tony Lindgren | 09be755 | 2008-03-03 01:31:32 -0800 | [diff] [blame] | 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 | 
| Tony Lindgren | 120db2c | 2006-04-02 17:46:27 +0100 | [diff] [blame] | 34 |  | 
|  | 35 | #endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */ |