gpiolib: allow exported GPIO nodes to be named using sysfs links
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Tue, 22 Sep 2009 23:46:33 +0000 (16:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:46 +0000 (07:39 -0700)
commita4177ee7f1a83eecb1d75e85d32664b023ef65e9
tree614b12b1f28a1a9090d96bea33639265e3e79839
parentd8c1acb1664d17dd995e34507533321e986d9215
gpiolib: allow exported GPIO nodes to be named using sysfs links

Commit 926b663ce8215ba448960e1ff6e58b67a2c3b99b (gpiolib: allow GPIOs to
be named) already provides naming on the chip level. This patch provides
more flexibility by allowing multiple names where ever in sysfs on a per
GPIO basis.

Adapted from David Brownell's comments on a similar concept:
http://lkml.org/lkml/2009/4/20/203.

[randy.dunlap@oracle.com: fix build for CONFIG_GENERIC_GPIO=n]
Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Acked-by: David Brownell <david-b@pacbell.net>
Cc: Daniel Silverstone <dsilvers@simtec.co.uk>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/gpio.txt
drivers/gpio/gpiolib.c
include/asm-generic/gpio.h
include/linux/gpio.h