Re: [PATCH] Modify sysfs gpio export so that "value" displays as 0 or 1

2008-10-16 Thread David Brownell
On Friday 10 October 2008, Steven A. Falco wrote: > 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

[PATCH] Modify sysfs gpio export so that "value" displays as 0 or 1

2008-10-10 Thread Steven A. Falco
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 --- diff --git a/drivers/gpio/gpiolib.c b/drivers/g