summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBalamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>2023-08-25 15:21:55 +0530
committerUlf Hansson <ulf.hansson@linaro.org>2023-08-25 13:40:21 +0200
commitce6e94722523f85e265455eb3296ebdbe996b3b5 (patch)
tree5c97bd4673e49d7a14e4961436d15c140bb7eb06 /include
parentd83d251bf3c2521bfce59016977da6c1cf995d61 (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/atmel-mci.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/atmel-mci.h b/include/linux/atmel-mci.h
index 1491af38cc6e..017e7d8f6126 100644
--- a/include/linux/atmel-mci.h
+++ b/include/linux/atmel-mci.h
@@ -26,8 +26,8 @@
*/
struct mci_slot_pdata {
unsigned int bus_width;
- int detect_pin;
- int wp_pin;
+ struct gpio_desc *detect_pin;
+ struct gpio_desc *wp_pin;
bool detect_is_active_high;
bool non_removable;
};