gpiolib: use gpio_chips list in gpiolib_sysfs_init
authorAlexandre Courbot <acourbot@nvidia.com>
Sat, 2 Feb 2013 16:29:25 +0000 (01:29 +0900)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 9 Feb 2013 09:22:21 +0000 (09:22 +0000)
commit65493e3ac429623df021e0859d97691f4b42615a
treea4e4568cde79ce00d80c5c1b6f4f74d59d1c2562
parent1a989d0f1de8f5a150b35e1e8181cc1abc139162
gpiolib: use gpio_chips list in gpiolib_sysfs_init

Use the small list of GPIO chips instead of parsing the whole GPIO
number space.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpiolib.c