gpiolib: use descriptors internally
authorAlexandre Courbot <acourbot@nvidia.com>
Sat, 2 Feb 2013 16:29:29 +0000 (01:29 +0900)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 11 Feb 2013 22:20:55 +0000 (22:20 +0000)
commit372e722ea4dd4ca11c3d04845e11cbc15f32144c
treee542c8befdaeb7d1aeffdbfb96cb1deae556d5d7
parent83cabe33eb05b51a6239a3df344d89cafac2306c
gpiolib: use descriptors internally

Make sure gpiolib works internally with descriptors and (chip, offset)
pairs instead of using the global integer namespace. This prepares the
ground for the removal of the global gpio_desc[] array and the
introduction of the descriptor-based GPIO API.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
[grant.likely: Squash in fix for link error when CONFIG_SYSFS=n]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpiolib.c