linux/include/linux/acpi_gpio.h
<<
>>
Prefs
   1#ifndef _LINUX_ACPI_GPIO_H_
   2#define _LINUX_ACPI_GPIO_H_
   3
   4#include <linux/errno.h>
   5#include <linux/gpio.h>
   6
   7#ifdef CONFIG_GPIO_ACPI
   8
   9int acpi_get_gpio(char *path, int pin);
  10void acpi_gpiochip_request_interrupts(struct gpio_chip *chip);
  11
  12#else /* CONFIG_GPIO_ACPI */
  13
  14static inline int acpi_get_gpio(char *path, int pin)
  15{
  16        return -ENODEV;
  17}
  18
  19static inline void acpi_gpiochip_request_interrupts(struct gpio_chip *chip) { }
  20
  21#endif /* CONFIG_GPIO_ACPI */
  22
  23#endif /* _LINUX_ACPI_GPIO_H_ */
  24
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.