Linux 3.9-rc4
[linux-2.6/cjktty.git] / include / linux / acpi_gpio.h
blobb76ebd08ff8e5a7f75d03b133c2e2cd2574b5373
1 #ifndef _LINUX_ACPI_GPIO_H_
2 #define _LINUX_ACPI_GPIO_H_
4 #include <linux/errno.h>
5 #include <linux/gpio.h>
7 #ifdef CONFIG_GPIO_ACPI
9 int acpi_get_gpio(char *path, int pin);
10 void acpi_gpiochip_request_interrupts(struct gpio_chip *chip);
12 #else /* CONFIG_GPIO_ACPI */
14 static inline int acpi_get_gpio(char *path, int pin)
16 return -ENODEV;
19 static inline void acpi_gpiochip_request_interrupts(struct gpio_chip *chip) { }
21 #endif /* CONFIG_GPIO_ACPI */
23 #endif /* _LINUX_ACPI_GPIO_H_ */