gpio: move sysfs support to its own file
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 1 Jul 2014 05:45:15 +0000 (14:45 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Jul 2014 10:22:57 +0000 (12:22 +0200)
commit0eb4c6c2671ca05e447811041c838e2a6bc2a1f4
tree8edc2ff6a011aaaa304bcd769ef889f1e1a04fe8
parent9c8318ff7041c8024e3afa22ce77e208138f1da5
gpio: move sysfs support to its own file

sysfs support is currently entangled within the core GPIO support, while
it should relly just be a (privileged) user of the integer GPIO API.
This patch is a first step towards making the gpiolib code more readable
by splitting it into logical parts.

Move all sysfs support to their own source file, and share static
members of gpiolib that need to be in the private gpiolib.h file. In
the future we will want to put some of them back into gpiolib.c, but this
first patch let us at least identify them.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Makefile
drivers/gpio/gpiolib-sysfs.c [new file with mode: 0644]
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h