gpio: sysfs: add gpiod class-device data
authorJohan Hovold <johan@kernel.org>
Mon, 4 May 2015 15:10:37 +0000 (17:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 08:47:12 +0000 (10:47 +0200)
commitc43960fbcc514b0ec8169a66ba9955608e6775a7
tree10c73074ebb45203f2d7446ed7c24f06a19ce8e1
parentf0b7866a02370d9a03b0be497b9f88d982b8b67d
gpio: sysfs: add gpiod class-device data

Add gpiod class-device data.

This is a first step in getting rid of the insane gpio-descriptor flag
overloading, backward irq-interface implementation, and course grained
sysfs-interface locking (a single static mutex for every operation on
all exported gpios in a system).

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-sysfs.c