Skip to content

Commit

Permalink
mmc: tmio: document mandatory and optional callbacks
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Simon Horman authored and Ulf Hansson committed Nov 29, 2016
1 parent 96e0b2b commit 2f87365
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/mmc/host/tmio_mmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 2f87365

Please sign in to comment.