Browse Source

gpiolib: use descriptors internally

Make sure gpiolib works internally with descriptors and (chip, offset)
pairs instead of using the global integer namespace. This prepares the
ground for the removal of the global gpio_desc[] array and the
introduction of the descriptor-based GPIO API.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
[grant.likely: Squash in fix for link error when CONFIG_SYSFS=n]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Alexandre Courbot 12 years ago
parent
commit
372e722ea4
1 changed files with 284 additions and 145 deletions
  1. 284 145
      drivers/gpio/gpiolib.c

File diff suppressed because it is too large
+ 284 - 145
drivers/gpio/gpiolib.c


Some files were not shown because too many files changed in this diff