mmc: host: tmio: Use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 2 Dec 2018 08:43:19 +0000 (09:43 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
commitfaed9303067a0bd9d8ddb09c0de3bc742334773a
tree77439d206a3adfd5937dfb706fa03e47975d361e
parent5716fb9bd9c6d3e56da07d6ed219dfcfce7d7006
mmc: host: tmio: Use GPIO descriptors

The TMIO MMC driver was passing global GPIO numbers around for
card detect. It turns out only one single board in the kernel
was actually making use of this feature so it is pretty easy
to convert the driver to use only GPIO descriptors.

The lines are flagged as GPIO_ACTIVE_[LOW|HIGH] as that is
what they are, and since we can now rely on the descriptors
to have the right polarity, we set the
"override_active_level" to false in mmc_gpiod_request_cd()
and mmc_gpiod_request_ro().

Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
arch/sh/boards/mach-ecovec24/setup.c
drivers/mmc/host/tmio_mmc_core.c
include/linux/mfd/tmio.h