aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gpio/machine.h
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2017-05-11 14:24:31 -0400
committerLinus Walleij <linus.walleij@linaro.org>2017-05-22 04:39:11 -0400
commit020e0b1c8f19f1fc3bce23beeccd80c574ca0e49 (patch)
tree8f0857ab354da8047f04a9b3224f138021885fdb /include/linux/gpio/machine.h
parentb4d2ea2af95cb77e2f320e24da526280d4aa2f6b (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/machine.h')
-rw-r--r--include/linux/gpio/machine.h7
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
59void gpiod_add_lookup_table(struct gpiod_lookup_table *table); 60void gpiod_add_lookup_table(struct gpiod_lookup_table *table);
60void gpiod_remove_lookup_table(struct gpiod_lookup_table *table); 61void gpiod_remove_lookup_table(struct gpiod_lookup_table *table);
62#else
63static inline
64void gpiod_add_lookup_table(struct gpiod_lookup_table *table) {}
65static inline
66void 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 */