Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpiolib: fix HAVE_GPIO_LIB leftovers in asm-generic/gpio.h

commit 7444a72effa632fcd8edc566f88 ("gpiolib: allow user-selection")
removed HAVE_GPIO_LIB Kconfig symbol, but the header file still uses the
name [to confuse readers wrt #ifdef/#else/#endif location].

The real Kconfig symbol nowadays is CONFIG_GPIOLIB.

Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Anton Vorontsov and committed by
Linus Torvalds
09cd9527 aeec56e3

+2 -2
+2 -2
include/asm-generic/gpio.h
··· 210 210 211 211 #endif /* CONFIG_GPIO_SYSFS */ 212 212 213 - #else /* !CONFIG_HAVE_GPIO_LIB */ 213 + #else /* !CONFIG_GPIOLIB */ 214 214 215 215 static inline int gpio_is_valid(int number) 216 216 { ··· 239 239 gpio_set_value(gpio, value); 240 240 } 241 241 242 - #endif /* !CONFIG_HAVE_GPIO_LIB */ 242 + #endif /* !CONFIG_GPIOLIB */ 243 243 244 244 #ifndef CONFIG_GPIO_SYSFS 245 245