gpioexpander.h 925 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * arch/arm/plat-omap/include/mach/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. #ifndef __ASM_ARCH_OMAP_GPIOEXPANDER_H
  16. #define __ASM_ARCH_OMAP_GPIOEXPANDER_H
  17. /* Function Prototypes for GPIO Expander functions */
  18. #ifdef CONFIG_GPIOEXPANDER_OMAP
  19. int read_gpio_expa(u8 *, int);
  20. int write_gpio_expa(u8 , int);
  21. #else
  22. static inline int read_gpio_expa(u8 *val, int addr)
  23. {
  24. return 0;
  25. }
  26. static inline int write_gpio_expa(u8 val, int addr)
  27. {
  28. return 0;
  29. }
  30. #endif
  31. #endif /* __ASM_ARCH_OMAP_GPIOEXPANDER_H */