After converting the PXA driver to use GPIO descriptors for card detect and write protect it is relatively simple to convert it to also use a descriptor for getting the optional power control GPIO. The polarity inversion flag can also go away from the platform data since this is indicated in the GPIO machine descriptor table.
Showing the changes to include/linux/platform_data (1 of 37 files). Show all
Unified · Split
| @@ -16,8 +16,6 @@ struct pxamci_platform_data { · 15 unmodified lines | |||
| 16 | int (*setpower)(struct device *, unsigned int); | 16 | int (*setpower)(struct device *, unsigned int); |
| 17 | void (*exit)(struct device *, void *); | 17 | void (*exit)(struct device *, void *); |
| 18 | bool gpio_card_ro_invert; /* gpio ro is inverted */ | 18 | bool gpio_card_ro_invert; /* gpio ro is inverted */ |
| 19 | int gpio_power; /* gpio powering up MMC bus */ | ||
| 20 | bool gpio_power_invert; /* gpio power is inverted */ | ||
| 21 | }; | 19 | }; |
| 22 | 20 | ||
| 23 | extern void pxa_set_mci_info(struct pxamci_platform_data *info); | 21 | extern void pxa_set_mci_info(struct pxamci_platform_data *info); |