diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-30 12:38:51 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2012-11-30 12:38:51 +0100 |
commit | d9ba1025a46d368bc00a2981cb2b2a918e9209b7 (patch) | |
tree | c0451a56f972b01e16c776b572a23b4371ce5c5d /include/linux | |
parent | ad063fbbdda6247c4653b708bf011986e8ab7ec8 (diff) | |
parent | 64bee4d28c9e2296f4f12a6c4cc40d085c2c9534 (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_ */ |