/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_SPI_MMC_SPI_H #define __LINUX_SPI_MMC_SPI_H #include <linux/spi/spi.h> #include <linux/interrupt.h> struct device; struct mmc_host; /* Put this in platform_data of a device being used to manage an MMC/SD * card slot. (Modeled after PXA mmc glue; see that for usage examples.) * * REVISIT This is not a spi-specific notion. Any card slot should be * able to handle it. If the MMC core doesn't adopt this kind of notion, * switch the "struct device *" parameters over to "struct spi_device *". */ struct mmc_spi_platform_data { … }; extern struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi); extern void mmc_spi_put_pdata(struct spi_device *spi); #endif /* __LINUX_SPI_MMC_SPI_H */