diff options
| author | 2012-11-30 12:38:51 +0100 | |
|---|---|---|
| committer | 2012-11-30 12:38:51 +0100 | |
| commit | d9ba1025a46d368bc00a2981cb2b2a918e9209b7 (patch) | |
| tree | c0451a56f972b01e16c776b572a23b4371ce5c5d /include/linux | |
| parent | Merge branch 'pm-tools' (diff) | |
| parent | spi / ACPI: add ACPI enumeration support (diff) | |
Merge branch 'acpi-enumeration'
* acpi-enumeration:
spi / ACPI: add ACPI enumeration support
gpio / ACPI: add ACPI support
Diffstat (limited to 'include/linux')
| -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 @@ +#ifndef _LINUX_ACPI_GPIO_H_ +#define _LINUX_ACPI_GPIO_H_ + +#include <linux/errno.h> + +#ifdef CONFIG_GPIO_ACPI + +int acpi_get_gpio(char *path, int pin); + +#else /* CONFIG_GPIO_ACPI */ + +static inline int acpi_get_gpio(char *path, int pin) +{ + return -ENODEV; +} + +#endif /* CONFIG_GPIO_ACPI */ + +#endif /* _LINUX_ACPI_GPIO_H_ */ |
