summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pci-data.c
diff options
context:
space:
mode:
authorAdrian Hunter2011-12-27 14:48:43 +0100
committerChris Ball2012-01-12 05:58:47 +0100
commit52c506f0bc72530fb786838e7ffd4f158a2e5c3a (patch)
tree2c46fdd2ce9ac582846733ed60f12caea2856196 /drivers/mmc/host/sdhci-pci-data.c
parentmmc: sdhci: prevent card detection activity for non-removable cards (diff)
downloadkernel-qcow2-linux-52c506f0bc72530fb786838e7ffd4f158a2e5c3a.tar.gz
kernel-qcow2-linux-52c506f0bc72530fb786838e7ffd4f158a2e5c3a.tar.xz
kernel-qcow2-linux-52c506f0bc72530fb786838e7ffd4f158a2e5c3a.zip
mmc: sdhci-pci: add platform data
Add a means of getting platform data for the SDHCI PCI devices. The data is stored against the slot not the device in order to support multi-slot devices. The data allows platform-specific setup (such as getting GPIO numbers from firmware or setting up wl12xx for SDIO) to be done in platform support files instead of the sdhci-pci driver. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci-data.c')
-rw-r--r--drivers/mmc/host/sdhci-pci-data.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pci-data.c b/drivers/mmc/host/sdhci-pci-data.c
new file mode 100644
index 000000000000..a611217769f5
--- /dev/null
+++ b/drivers/mmc/host/sdhci-pci-data.c
@@ -0,0 +1,5 @@
+#include <linux/module.h>
+#include <linux/mmc/sdhci-pci-data.h>
+
+struct sdhci_pci_data *(*sdhci_pci_get_data)(struct pci_dev *pdev, int slotno);
+EXPORT_SYMBOL_GPL(sdhci_pci_get_data);