summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/include/linux/spi/mmc_spi.h
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /ANDROID_3.4.5/include/linux/spi/mmc_spi.h
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'ANDROID_3.4.5/include/linux/spi/mmc_spi.h')
-rw-r--r--ANDROID_3.4.5/include/linux/spi/mmc_spi.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/ANDROID_3.4.5/include/linux/spi/mmc_spi.h b/ANDROID_3.4.5/include/linux/spi/mmc_spi.h
deleted file mode 100644
index 32be8dbd..00000000
--- a/ANDROID_3.4.5/include/linux/spi/mmc_spi.h
+++ /dev/null
@@ -1,57 +0,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 {
- /* driver activation and (optional) card detect irq hookup */
- int (*init)(struct device *,
- irqreturn_t (*)(int, void *),
- void *);
- void (*exit)(struct device *, void *);
-
- /* sense switch on sd cards */
- int (*get_ro)(struct device *);
-
- /*
- * If board does not use CD interrupts, driver can optimize polling
- * using this function.
- */
- int (*get_cd)(struct device *);
-
- /* Capabilities to pass into mmc core (e.g. MMC_CAP_NEEDS_POLL). */
- unsigned long caps;
-
- /* how long to debounce card detect, in msecs */
- u16 detect_delay;
-
- /* power management */
- u16 powerup_msecs; /* delay of up to 250 msec */
- u32 ocr_mask; /* available voltages */
- void (*setpower)(struct device *, unsigned int maskval);
-};
-
-#ifdef CONFIG_OF
-extern struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi);
-extern void mmc_spi_put_pdata(struct spi_device *spi);
-#else
-static inline struct mmc_spi_platform_data *
-mmc_spi_get_pdata(struct spi_device *spi)
-{
- return spi->dev.platform_data;
-}
-static inline void mmc_spi_put_pdata(struct spi_device *spi) {}
-#endif /* CONFIG_OF */
-
-#endif /* __LINUX_SPI_MMC_SPI_H */