History

mmc: pxa: Use GPIO descriptor for power

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.

Linus Walleij committed 7 years ago

Commit f54005b1 parent 80a68f337 files · +53 −79Browse files

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

Unified · Split

include/linux/platform_data/mmc-pxamci.h+0−2
@@ -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
23extern void pxa_set_mci_info(struct pxamci_platform_data *info);21extern void pxa_set_mci_info(struct pxamci_platform_data *info);