|
@@ -56,7 +56,14 @@ struct gpiod_lookup_table {
|
|
.flags = _flags, \
|
|
.flags = _flags, \
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifdef CONFIG_GPIOLIB
|
|
void gpiod_add_lookup_table(struct gpiod_lookup_table *table);
|
|
void gpiod_add_lookup_table(struct gpiod_lookup_table *table);
|
|
void gpiod_remove_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 */
|
|
#endif /* __LINUX_GPIO_MACHINE_H */
|