]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfdd84a47a7dbeffe8a94ea6e416fb8879cbe8b30
treecba571d3cbc3f8b4f10afdff36bc5a5ec4e0b988
parenta8c277652eba82ebd56b33be4401dec5ff6e4126
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