gpiolib: use gpio_chips list in gpiochip_find
authorAlexandre Courbot <acourbot@nvidia.com>
Sat, 2 Feb 2013 16:29:26 +0000 (01:29 +0900)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 9 Feb 2013 09:23:30 +0000 (09:23 +0000)
commit125eef96f6cfadddbac8f6b9fccc9848988e7c6e
tree70c2cf06b32ba24460df717381a4f53e63401afc
parent65493e3ac429623df021e0859d97691f4b42615a
gpiolib: use gpio_chips list in gpiochip_find

Using the GPIO chips list is much faster than parsing the entire 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