]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit109802ca29f3ad0288cb9937f4d9bf073b3832ac
tree3cfecf3becf2d80be974cb22626e323be4cfbb21
parent7913bbd13ee3adcbf637d01f9f5a37d95f050242
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