e3274e9150
gpiolib can export GPIOs to userspace via sysfs. This patch modifies the gpio_value_show() so that any non-zero value is explicitly printed as "1", rather than whatever numerical value the lower-level driver returns. Signed-off-by: Steve Falco <sfalco@harris.com> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
bt8xxgpio.c | ||
gpiolib.c | ||
Kconfig | ||
Makefile | ||
max732x.c | ||
max7301.c | ||
mcp23s08.c | ||
pca953x.c | ||
pcf857x.c |