gpiolib: factorize gpiod_get/set functions
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 4 Sep 2013 11:29:25 +0000 (20:29 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Sep 2013 08:30:18 +0000 (10:30 +0200)
commitd8e0ac0824cd0868ea73f186d6511d710b068044
tree39e856bbd34a65fdf54b1879d8f14e33f5986ece
parentb59278548e2383976f7db5fd3389f9116a6f240d
gpiolib: factorize gpiod_get/set functions

gpiod_get/set functions share common code between their regular and
cansleep variants. The exporting of the gpiod interface will make
the situation worse. This patch factorizes the common code to avoid code
redundancy.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c