mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
gpio: Add comments on #if/#else/#endif
Improve readability a bit by commenting #if/#else/#endif statements with the checked preprocessor symbols. Signed-off-by: Enrico Weigelt <info@metux.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
a1000673d2
commit
f310f2eff7
3 changed files with 11 additions and 11 deletions
|
@ -97,7 +97,7 @@ void gpiod_add_lookup_table(struct gpiod_lookup_table *table);
|
|||
void gpiod_add_lookup_tables(struct gpiod_lookup_table **tables, size_t n);
|
||||
void gpiod_remove_lookup_table(struct gpiod_lookup_table *table);
|
||||
void gpiod_add_hogs(struct gpiod_hog *hogs);
|
||||
#else
|
||||
#else /* ! CONFIG_GPIOLIB */
|
||||
static inline
|
||||
void gpiod_add_lookup_table(struct gpiod_lookup_table *table) {}
|
||||
static inline
|
||||
|
@ -105,6 +105,6 @@ void gpiod_add_lookup_tables(struct gpiod_lookup_table **tables, size_t n) {}
|
|||
static inline
|
||||
void gpiod_remove_lookup_table(struct gpiod_lookup_table *table) {}
|
||||
static inline void gpiod_add_hogs(struct gpiod_hog *hogs) {}
|
||||
#endif
|
||||
#endif /* CONFIG_GPIOLIB */
|
||||
|
||||
#endif /* __LINUX_GPIO_MACHINE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue