alistair23-linux/drivers/gpio
Steven A. Falco e3274e9150 gpio: modify sysfs gpio export so that "value" displays as 0 or 1
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>
2008-10-20 08:52:36 -07:00
..
bt8xxgpio.c gpio: add bt8xxgpio driver 2008-07-25 10:53:30 -07:00
gpiolib.c gpio: modify sysfs gpio export so that "value" displays as 0 or 1 2008-10-20 08:52:36 -07:00
Kconfig gpio: max732x driver 2008-07-25 10:53:30 -07:00
Makefile gpio: max732x driver 2008-07-25 10:53:30 -07:00
max732x.c gpio: i2c expanders use subsys_init 2008-10-16 11:21:40 -07:00
max7301.c gpio: max7301: fix the race between chip addition and pins reconfiguration 2008-10-16 11:21:40 -07:00
mcp23s08.c spi: core and gpio expanders use subsys_init 2008-10-16 11:21:38 -07:00
pca953x.c gpio: i2c expanders use subsys_init 2008-10-16 11:21:40 -07:00
pcf857x.c gpio: i2c expanders use subsys_init 2008-10-16 11:21:40 -07:00