OSDN Git Service

mmc: atmel-mci: Convert to gpio descriptors
authorBalamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
Fri, 25 Aug 2023 09:51:55 +0000 (15:21 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 25 Aug 2023 11:40:21 +0000 (13:40 +0200)
commitce6e94722523f85e265455eb3296ebdbe996b3b5
tree5c97bd4673e49d7a14e4961436d15c140bb7eb06
parentd83d251bf3c2521bfce59016977da6c1cf995d61
mmc: atmel-mci: Convert to gpio descriptors

Replace the legacy GPIO APIs with gpio descriptor consumer interface.
To maintain backward compatibility, we rely on the "cd-inverted"
property to manage the invertion flag instead of GPIO property.

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230825095157.76073-2-balamanikandan.gunasundar@microchip.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/atmel-mci.c
include/linux/atmel-mci.h