From: Guennadi Liakhovetski Date: Tue, 4 Dec 2012 15:51:32 +0000 (+0100) Subject: mmc: add a card-event host operation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9f1fb60a2338aa2202ca94d67f84c582f31dbf5a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mmc: add a card-event host operation Some hosts need to perform additional actions upon card insertion or ejection. Add a host operation to be called from card detection handlers. Signed-off-by: Guennadi Liakhovetski Reviewed-by: Shawn Guo Signed-off-by: Chris Ball --- diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 23df21e5826b..61a10c17aabd 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -136,6 +136,7 @@ struct mmc_host_ops { void (*enable_preset_value)(struct mmc_host *host, bool enable); int (*select_drive_strength)(unsigned int max_dtr, int host_drv, int card_drv); void (*hw_reset)(struct mmc_host *host); + void (*card_event)(struct mmc_host *host); }; struct mmc_card;