mmc: slot-gpio: switch to use flags when getting GPIO
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 27 Aug 2014 11:00:50 +0000 (13:00 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 9 Sep 2014 12:25:14 +0000 (14:25 +0200)
commit9fbc695075e905b9201100860eacac6349db6644
tree3cfecf3becf2d80be974cb22626e323be4cfbb21
parentf5b4d71f72c5f08c2e1d0af68ef881f85537e7a1
mmc: slot-gpio: switch to use flags when getting GPIO

When the slot GPIO driver gets the GPIO to be used for card
detect, it is now possible to specify a flag to have the line
set up as input. Get rid of the explicit setup call for input
and use the flag.

The extra argument works as there are transition varargs
macros in place in the <linux/gpio/consumer.h> header, in
the future we will make the flags argument compulsory.

Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/slot-gpio.c