Mika Westerberg | 664e3e5 | 2014-01-08 12:40:54 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Internal GPIO functions. |
| 3 | * |
| 4 | * Copyright (C) 2013, Intel Corporation |
| 5 | * Author: Mika Westerberg <mika.westerberg@linux.intel.com> |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License version 2 as |
| 9 | * published by the Free Software Foundation. |
| 10 | */ |
| 11 | |
| 12 | #ifndef GPIOLIB_H |
| 13 | #define GPIOLIB_H |
| 14 | |
| 15 | #ifdef CONFIG_ACPI |
| 16 | void acpi_gpiochip_add(struct gpio_chip *chip); |
| 17 | void acpi_gpiochip_remove(struct gpio_chip *chip); |
| 18 | #else |
| 19 | static inline void acpi_gpiochip_add(struct gpio_chip *chip) { } |
| 20 | static inline void acpi_gpiochip_remove(struct gpio_chip *chip) { } |
| 21 | #endif |
| 22 | |
| 23 | #endif /* GPIOLIB_H */ |