mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
Merge branch 'acpi-enumeration'
* acpi-enumeration: spi / ACPI: add ACPI enumeration support gpio / ACPI: add ACPI support
This commit is contained in:
commit
d9ba1025a4
5 changed files with 180 additions and 1 deletions
19
include/linux/acpi_gpio.h
Normal file
19
include/linux/acpi_gpio.h
Normal file
|
|
@ -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_ */
|
||||
Loading…
Reference in a new issue