History

mmc: pxamci: Delete platform data handling of CD and WP

This deletes the code dealing with handling card detect and write protect passed in as platform data and makes the host rely on just GPIO descriptors. The card read only inversion flag has to be kept around for now, as the core cannot handle the inversion flags on the descriptors yet. 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().

Linus Walleij committed 7 years ago

Commit 80a68f31 parent e114cd32 files · +0 −21Browse files

Showing the changes to include/linux/platform_data (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/mmc-pxamci.h+0−2
@@ -15,8 +15,6 @@ struct pxamci_platform_data { · 14 unmodified lines
1515 int (*get_ro)(struct device *);
1616 int (*setpower)(struct device *, unsigned int);
1717 void (*exit)(struct device *, void *);
18− int gpio_card_detect; /* gpio detecting card insertion */
19− int gpio_card_ro; /* gpio detecting read only toggle */
2018 bool gpio_card_ro_invert; /* gpio ro is inverted */
2119 int gpio_power; /* gpio powering up MMC bus */
2220 bool gpio_power_invert; /* gpio power is inverted */