gpiolib: let gpio_chip reference its descriptors
authorAlexandre Courbot <acourbot@nvidia.com>
Sat, 2 Feb 2013 16:29:30 +0000 (01:29 +0900)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 11 Feb 2013 22:21:28 +0000 (22:21 +0000)
Add a pointer to the gpio_chip structure that references the array of
GPIO descriptors belonging to the chip, and update gpiolib code to use
this pointer instead of the global gpio_desc[] array. This is another
step towards the removal of the gpio_desc[] global array.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.orh>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

No differences found