summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSteven A. Falco <sfalco@harris.com>2008-10-18 20:27:48 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 08:52:36 -0700
commite3274e915061a65717454106301d4a5ea8f71783 (patch)
treee88cb4ef896fe2f4e38b58ed1b0d2f2e543c70cb /net
parentc8fc40cd345bfd88d8a98e7916909b9143502999 (diff)
downloadkernel-crypto-e3274e915061a65717454106301d4a5ea8f71783.tar.gz
kernel-crypto-e3274e915061a65717454106301d4a5ea8f71783.tar.xz
kernel-crypto-e3274e915061a65717454106301d4a5ea8f71783.zip
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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions