summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pci.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2017-03-20 18:50:51 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2017-04-24 21:41:38 +0200
commit30cf2803b268f2bcce91fbaa19cee6d04b14bd86 (patch)
tree9c6e9cd4f0656f1e8c879b42aaf7c99fc724d44a /drivers/mmc/host/sdhci-pci.h
parentmmc: sdhci-pci: Conditionally compile pm sleep functions (diff)
downloadlinux-30cf2803b268f2bcce91fbaa19cee6d04b14bd86.tar.xz
linux-30cf2803b268f2bcce91fbaa19cee6d04b14bd86.zip
mmc: sdhci-pci: Let suspend/resume callbacks replace default callbacks
The suspend / resume callbacks lack the flexibility to allow a device to specify a different function entirely. Change them around so that device functions are called directly and they in turn can call the default implementations if needed. 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>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci.h')
-rw-r--r--drivers/mmc/host/sdhci-pci.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-pci.h b/drivers/mmc/host/sdhci-pci.h
index e70a27058e0b..ec8f91c403d6 100644
--- a/drivers/mmc/host/sdhci-pci.h
+++ b/drivers/mmc/host/sdhci-pci.h
@@ -111,4 +111,8 @@ static inline void *sdhci_pci_priv(struct sdhci_pci_slot *slot)
return (void *)slot->private;
}
+#ifdef CONFIG_PM_SLEEP
+int sdhci_pci_resume_host(struct sdhci_pci_chip *chip);
+#endif
+
#endif /* __SDHCI_PCI_H */