]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-acpi: Let devices define their own private data
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 19 Oct 2017 10:41:45 +0000 (13:41 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 2 Nov 2017 14:20:27 +0000 (15:20 +0100)
commit96d6933b474d41205a6051868151fda763a977b0
tree746b03e5cb6cbff099e34e1d18e8211c27b298a0
parent96ce77edda613170df319564922490be4205bdeb
mmc: sdhci-acpi: 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_acpi_slot structure, then sdhci_acpi_probe() will allocate extra
space for it, and sdhci_acpi_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>
drivers/mmc/host/sdhci-acpi.c