drivers/rtc/rtc-wm831x.c: remove empty function
[linux-2.6.git] / include / linux / acpi_gpio.h
blob4c120a1e0ca3b0cbe4070f20b7a2905582f62b6c
1 #ifndef _LINUX_ACPI_GPIO_H_
2 #define _LINUX_ACPI_GPIO_H_
4 #include <linux/device.h>
5 #include <linux/errno.h>
6 #include <linux/gpio.h>
8 /**
9 * struct acpi_gpio_info - ACPI GPIO specific information
10 * @gpioint: if %true this GPIO is of type GpioInt otherwise type is GpioIo
12 struct acpi_gpio_info {
13 bool gpioint;
16 #ifdef CONFIG_GPIO_ACPI
18 int acpi_get_gpio(char *path, int pin);
19 int acpi_get_gpio_by_index(struct device *dev, int index,
20 struct acpi_gpio_info *info);
21 void acpi_gpiochip_request_interrupts(struct gpio_chip *chip);
22 void acpi_gpiochip_free_interrupts(struct gpio_chip *chip);
24 #else /* CONFIG_GPIO_ACPI */
26 static inline int acpi_get_gpio(char *path, int pin)
28 return -ENODEV;
31 static inline int acpi_get_gpio_by_index(struct device *dev, int index,
32 struct acpi_gpio_info *info)
34 return -ENODEV;
37 static inline void acpi_gpiochip_request_interrupts(struct gpio_chip *chip) { }
38 static inline void acpi_gpiochip_free_interrupts(struct gpio_chip *chip) { }
40 #endif /* CONFIG_GPIO_ACPI */
42 #endif /* _LINUX_ACPI_GPIO_H_ */