diff options
Diffstat (limited to 'include/linux/acpi_gpio.h')
| -rw-r--r-- | include/linux/acpi_gpio.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/acpi_gpio.h b/include/linux/acpi_gpio.h new file mode 100644 index 000000000000..91615a389b65 --- /dev/null +++ b/include/linux/acpi_gpio.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #ifndef _LINUX_ACPI_GPIO_H_ | ||
| 2 | #define _LINUX_ACPI_GPIO_H_ | ||
| 3 | |||
| 4 | #include <linux/errno.h> | ||
| 5 | |||
| 6 | #ifdef CONFIG_GPIO_ACPI | ||
| 7 | |||
| 8 | int acpi_get_gpio(char *path, int pin); | ||
| 9 | |||
| 10 | #else /* CONFIG_GPIO_ACPI */ | ||
| 11 | |||
| 12 | static inline int acpi_get_gpio(char *path, int pin) | ||
| 13 | { | ||
| 14 | return -ENODEV; | ||
| 15 | } | ||
| 16 | |||
| 17 | #endif /* CONFIG_GPIO_ACPI */ | ||
| 18 | |||
| 19 | #endif /* _LINUX_ACPI_GPIO_H_ */ | ||
