gpiolib: use gpio_chips list in sysfs ops
authorAlexandre Courbot <acourbot@nvidia.com>
Sat, 2 Feb 2013 16:29:27 +0000 (01:29 +0900)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 9 Feb 2013 09:30:17 +0000 (09:30 +0000)
commitcb1650d4e0da27e88c1a1bd8fe98c40ae1a5d313
tree576d50b4561c435bb0ffaeac2e49570482fe5111
parent125eef96f6cfadddbac8f6b9fccc9848988e7c6e
gpiolib: use gpio_chips list in sysfs ops

This makes the code both simpler and faster compared to parsing the GPIO
number space.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpiolib.c