mmc: sdhci-pci: Let devices define their own private data
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 20 Mar 2017 17:50:33 +0000 (19:50 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:27 +0000 (21:41 +0200)
commitac9f67b5800b9a96987ec602a34dd256a92ac7ca
treecba571d3cbc3f8b4f10afdff36bc5a5ec4e0b988
parentd38dcad4e7b48f3d68d5d058f8f4f52a99862e6e
mmc: sdhci-pci: Let devices define their own private data

Let devices define their own private data to facilitate device-specific
operations. The size of the private structure is specified in the
sdhci_pci_fixes structure, then sdhci_pci_probe_slot() will allocate extra
space for it, and sdhci_pci_priv() can be used to get a reference to it.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
drivers/mmc/host/sdhci-pci-core.c
drivers/mmc/host/sdhci-pci.h