spi-topcliff-pch: Fix issue for transmitting over 4KByte
[zen-stable.git] / arch / sparc / include / asm / gpio.h
bloba0e3ac0af599c36681a80db126a48bc37bc440f5
1 #ifndef __ASM_SPARC_GPIO_H
2 #define __ASM_SPARC_GPIO_H
4 #include <linux/errno.h>
5 #include <asm-generic/gpio.h>
7 #ifdef CONFIG_GPIOLIB
9 static inline int gpio_get_value(unsigned int gpio)
11 return __gpio_get_value(gpio);
14 static inline void gpio_set_value(unsigned int gpio, int value)
16 __gpio_set_value(gpio, value);
19 static inline int gpio_cansleep(unsigned int gpio)
21 return __gpio_cansleep(gpio);
24 static inline int gpio_to_irq(unsigned int gpio)
26 return -ENOSYS;
29 static inline int irq_to_gpio(unsigned int irq)
31 return -EINVAL;
34 #endif /* CONFIG_GPIOLIB */
36 #endif /* __ASM_SPARC_GPIO_H */