diff options
| author | Simon Horman <[email protected]> | 2016-11-03 15:16:01 +0100 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2016-11-29 09:00:56 +0100 |
| commit | 2f87365f832bbc26e32f23588aaeb40abe15ff0d (patch) | |
| tree | f6cc93d56cb0d539ea5e6adce7a2f53c770fa8ab | |
| parent | 96e0b2ba00ee5dacb12bed6585145ce784ec9153 (diff) | |
mmc: tmio: document mandatory and optional callbacks
Signed-off-by: Simon Horman <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
Tested-by: Wolfram Sang <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
| -rw-r--r-- | drivers/mmc/host/tmio_mmc.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index 839755c7f2b0..f46d25e1612c 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h @@ -154,8 +154,10 @@ struct tmio_mmc_host { bool native_hotplug; bool sdio_irq_enabled; - int (*write16_hook)(struct tmio_mmc_host *host, int addr); + /* Mandatory callback */ int (*clk_enable)(struct tmio_mmc_host *host); + + /* Optional callbacks */ unsigned int (*clk_update)(struct tmio_mmc_host *host, unsigned int new_clock); void (*clk_disable)(struct tmio_mmc_host *host); @@ -164,6 +166,7 @@ struct tmio_mmc_host { int (*card_busy)(struct mmc_host *mmc); int (*start_signal_voltage_switch)(struct mmc_host *mmc, struct mmc_ios *ios); + int (*write16_hook)(struct tmio_mmc_host *host, int addr); }; struct tmio_mmc_host *tmio_mmc_host_alloc(struct platform_device *pdev); |