diff options
Diffstat (limited to 'include/linux')
| -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 */ |
