diff options
| author | Anatolij Gustschin <agust@denx.de> | 2017-05-11 14:24:31 -0400 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2017-05-22 04:39:11 -0400 |
| commit | 020e0b1c8f19f1fc3bce23beeccd80c574ca0e49 (patch) | |
| tree | 8f0857ab354da8047f04a9b3224f138021885fdb /include/linux/gpio | |
| parent | b4d2ea2af95cb77e2f320e24da526280d4aa2f6b (diff) | |
gpiolib: Add stubs for gpiod lookup table interface
Add stubs for gpiod_add_lookup_table() and gpiod_remove_lookup_table()
for the !GPIOLIB case to prevent build errors.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
| -rw-r--r-- | include/linux/gpio/machine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/gpio/machine.h b/include/linux/gpio/machine.h index c0d712d22b07..f738d50cc17d 100644 --- a/include/linux/gpio/machine.h +++ b/include/linux/gpio/machine.h | |||
| @@ -56,7 +56,14 @@ struct gpiod_lookup_table { | |||
| 56 | .flags = _flags, \ | 56 | .flags = _flags, \ |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | #ifdef CONFIG_GPIOLIB | ||
| 59 | void gpiod_add_lookup_table(struct gpiod_lookup_table *table); | 60 | void gpiod_add_lookup_table(struct gpiod_lookup_table *table); |
| 60 | void gpiod_remove_lookup_table(struct gpiod_lookup_table *table); | 61 | void gpiod_remove_lookup_table(struct gpiod_lookup_table *table); |
| 62 | #else | ||
| 63 | static inline | ||
| 64 | void gpiod_add_lookup_table(struct gpiod_lookup_table *table) {} | ||
| 65 | static inline | ||
| 66 | void gpiod_remove_lookup_table(struct gpiod_lookup_table *table) {} | ||
| 67 | #endif | ||
| 61 | 68 | ||
| 62 | #endif /* __LINUX_GPIO_MACHINE_H */ | 69 | #endif /* __LINUX_GPIO_MACHINE_H */ |
