]> Pileus Git - ~andy/linux/blobdiff - drivers/mmc/core/core.h
mmc: core: Extend shutdown sequence to handle bus operations
[~andy/linux] / drivers / mmc / core / core.h
index 6242ffb789c45afc8ddd8136444700edba5f6438..5345d156493efcc00dcb11790aa145d0f4ea51a0 100644 (file)
 #define MMC_CMD_RETRIES        3
 
 struct mmc_bus_ops {
-       int (*awake)(struct mmc_host *);
-       int (*sleep)(struct mmc_host *);
        void (*remove)(struct mmc_host *);
        void (*detect)(struct mmc_host *);
+       int (*pre_suspend)(struct mmc_host *);
        int (*suspend)(struct mmc_host *);
        int (*resume)(struct mmc_host *);
        int (*runtime_suspend)(struct mmc_host *);
@@ -27,6 +26,7 @@ struct mmc_bus_ops {
        int (*power_save)(struct mmc_host *);
        int (*power_restore)(struct mmc_host *);
        int (*alive)(struct mmc_host *);
+       int (*shutdown)(struct mmc_host *);
 };
 
 void mmc_attach_bus(struct mmc_host *host, const struct mmc_bus_ops *ops);