sdhci-pltfm.h (1691c261aec44f5262dbcf8846100dc4f256f3dd) sdhci-pltfm.h (32261f9b728277f88a0affa022df64e6238c24a6)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright 2010 MontaVista Software, LLC.
4 *
5 * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
6 */
7
8#ifndef _DRIVERS_MMC_SDHCI_PLTFM_H

--- 89 unchanged lines hidden (view full) ---

98 const struct sdhci_pltfm_data *pdata,
99 size_t priv_size);
100extern void sdhci_pltfm_free(struct platform_device *pdev);
101
102extern int sdhci_pltfm_register(struct platform_device *pdev,
103 const struct sdhci_pltfm_data *pdata,
104 size_t priv_size);
105extern void sdhci_pltfm_unregister(struct platform_device *pdev);
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright 2010 MontaVista Software, LLC.
4 *
5 * Author: Anton Vorontsov <avorontsov@ru.mvista.com>
6 */
7
8#ifndef _DRIVERS_MMC_SDHCI_PLTFM_H

--- 89 unchanged lines hidden (view full) ---

98 const struct sdhci_pltfm_data *pdata,
99 size_t priv_size);
100extern void sdhci_pltfm_free(struct platform_device *pdev);
101
102extern int sdhci_pltfm_register(struct platform_device *pdev,
103 const struct sdhci_pltfm_data *pdata,
104 size_t priv_size);
105extern void sdhci_pltfm_unregister(struct platform_device *pdev);
106extern void sdhci_pltfm_remove(struct platform_device *pdev);
106
107extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host);
108
109static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host)
110{
111 return host->private;
112}
113
114extern const struct dev_pm_ops sdhci_pltfm_pmops;
115#ifdef CONFIG_PM_SLEEP
116int sdhci_pltfm_suspend(struct device *dev);
117int sdhci_pltfm_resume(struct device *dev);
118#else
119static inline int sdhci_pltfm_suspend(struct device *dev) { return 0; }
120static inline int sdhci_pltfm_resume(struct device *dev) { return 0; }
121#endif
122
123#endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */
107
108extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host);
109
110static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host)
111{
112 return host->private;
113}
114
115extern const struct dev_pm_ops sdhci_pltfm_pmops;
116#ifdef CONFIG_PM_SLEEP
117int sdhci_pltfm_suspend(struct device *dev);
118int sdhci_pltfm_resume(struct device *dev);
119#else
120static inline int sdhci_pltfm_suspend(struct device *dev) { return 0; }
121static inline int sdhci_pltfm_resume(struct device *dev) { return 0; }
122#endif
123
124#endif /* _DRIVERS_MMC_SDHCI_PLTFM_H */