This source file includes following definitions.
- mmc_spi_get_pdata
- mmc_spi_put_pdata
   1 
   2 #ifndef __LINUX_SPI_MMC_SPI_H
   3 #define __LINUX_SPI_MMC_SPI_H
   4 
   5 #include <linux/spi/spi.h>
   6 #include <linux/interrupt.h>
   7 
   8 struct device;
   9 struct mmc_host;
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 struct mmc_spi_platform_data {
  19         
  20         int (*init)(struct device *,
  21                 irqreturn_t (*)(int, void *),
  22                 void *);
  23         void (*exit)(struct device *, void *);
  24 
  25         
  26         unsigned long caps;
  27         unsigned long caps2;
  28 
  29         
  30         u16 detect_delay;
  31 
  32         
  33         u16 powerup_msecs;              
  34         u32 ocr_mask;                   
  35         void (*setpower)(struct device *, unsigned int maskval);
  36 };
  37 
  38 #ifdef CONFIG_OF
  39 extern struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi);
  40 extern void mmc_spi_put_pdata(struct spi_device *spi);
  41 #else
  42 static inline struct mmc_spi_platform_data *
  43 mmc_spi_get_pdata(struct spi_device *spi)
  44 {
  45         return spi->dev.platform_data;
  46 }
  47 static inline void mmc_spi_put_pdata(struct spi_device *spi) {}
  48 #endif 
  49 
  50 #endif