Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 020e0b1c authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Linus Walleij
Browse files

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: default avatarAnatolij Gustschin <agust@denx.de>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent b4d2ea2a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -56,7 +56,14 @@ struct gpiod_lookup_table {
	.flags = _flags,                                                  \
}

#ifdef CONFIG_GPIOLIB
void gpiod_add_lookup_table(struct gpiod_lookup_table *table);
void gpiod_remove_lookup_table(struct gpiod_lookup_table *table);
#else
static inline
void gpiod_add_lookup_table(struct gpiod_lookup_table *table) {}
static inline
void gpiod_remove_lookup_table(struct gpiod_lookup_table *table) {}
#endif

#endif /* __LINUX_GPIO_MACHINE_H */