X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fspi%2Fmmc_spi.h;h=a3626aedaec9350f9f17b19a12a6ade89a561b5c;hb=82248a5e92793014d156a12dbcbba633794ce9f8;hp=d5ca78b93a3bbd9f9e78191cb5f7314622259045;hpb=93022136fff9e6130aa128a5ed8a599e93ac813c;p=linux-2.6 diff --git a/include/linux/spi/mmc_spi.h b/include/linux/spi/mmc_spi.h index d5ca78b93a..a3626aedae 100644 --- a/include/linux/spi/mmc_spi.h +++ b/include/linux/spi/mmc_spi.h @@ -23,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;