Skip to content

Commit

Permalink
gpiolib: fix HAVE_GPIO_LIB leftovers in asm-generic/gpio.h
Browse files Browse the repository at this point in the history
commit 7444a72 ("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>
  • Loading branch information
Anton Vorontsov authored and Linus Torvalds committed Oct 28, 2010
1 parent aeec56e commit 09cd952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-generic/gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ extern void gpio_unexport(unsigned gpio);

#endif /* CONFIG_GPIO_SYSFS */

#else /* !CONFIG_HAVE_GPIO_LIB */
#else /* !CONFIG_GPIOLIB */

static inline int gpio_is_valid(int number)
{
Expand Down Expand Up @@ -239,7 +239,7 @@ static inline void gpio_set_value_cansleep(unsigned gpio, int value)
gpio_set_value(gpio, value);
}

#endif /* !CONFIG_HAVE_GPIO_LIB */
#endif /* !CONFIG_GPIOLIB */

#ifndef CONFIG_GPIO_SYSFS

Expand Down

0 comments on commit 09cd952

Please sign in to comment.