commit | b7d0a28a9f65c4f8a547ceece820b8167a854968 | [log] [tgz] |
---|---|---|
author | Alexandre Courbot <acourbot@nvidia.com> | Tue Dec 03 12:31:11 2013 +0900 |
committer | Linus Walleij <linus.walleij@linaro.org> | Wed Dec 04 13:45:29 2013 +0100 |
tree | 37176b7a2ccf808cdfc4a4c03be778b6e0980044 | |
parent | a87854da2c55b15adc7326a9ee5f8fde281ffe43 [diff] |
gpio: rewrite gpiochip_offset_to_desc() gpiochip_offset_to_desc() was using gpio_to_desc(), which directly addresses the global GPIO array we are hoping to get rid of someday. Reimplement it using the descriptor array of the chip itself, after checking the requested offset is within the valid bounds of the chip. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>