Comments

We'll need this function to write platform-specific hooks to deal
with pin's dedicated functions. Quite obviously this will work only
for the platforms with 1-to-1 GPIO to PIN mapping.
This is stopgap solution till we think out and implement a proper
api (pinlib?).
p.s. This patch actually exports gpio_desc and places gpio_to_chip
into the asm-generic/gpio.h as `static inline'. This is needed
to not cause function calls for this trivial translation.
Also, the patch does not export FLAG_*s... the names are too
generic, and nobody is using them outside of gpiolib.c.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---
drivers/gpio/gpiolib.c | 16 ++--------------
include/asm-generic/gpio.h | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 14 deletions(-)