]> err.no Git - linux-2.6/blobdiff - include/linux/spi/mmc_spi.h
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq
[linux-2.6] / include / linux / spi / mmc_spi.h
index e9bbe3ebd7217c23a9a96bb2f3adfe6f536914f5..a3626aedaec9350f9f17b19a12a6ade89a561b5c 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_SPI_MMC_SPI_H
 #define __LINUX_SPI_MMC_SPI_H
 
+#include <linux/interrupt.h>
+
 struct device;
 struct mmc_host;
 
@@ -21,6 +23,15 @@ struct mmc_spi_platform_data {
        /* 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;