gpiolib: add support for changing value polarity in sysfs
authorJani Nikula <ext-jani.1.nikula@nokia.com>
Wed, 16 Dec 2009 00:46:20 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:01 +0000 (07:20 -0800)
commit0769746183caff9d4334be48c7b0e7d2ec8716c4
treee23768be82bd84cf8331709ecc1fd36c3d468f33
parent35570ac6039ef490b9c5abde1fee4803a39bf4e1
gpiolib: add support for changing value polarity in sysfs

Drivers may use gpiolib sysfs as part of their public user space
interface. The GPIO number and polarity might change from board to
board. The gpio_export_link() call can be used to hide the GPIO number
from user space. Add support for also hiding the GPIO line polarity
changes from user space.

Signed-off-by: Jani Nikula <ext-jani.1.nikula@nokia.com>
Cc: David Brownell <david-b@pacbell.net>
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