summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/tmio_mmc.h
diff options
context:
space:
mode:
authorKuninori Morimoto2015-01-13 05:57:42 +0100
committerUlf Hansson2015-01-20 10:22:17 +0100
commitdfe9a229e0a66b6a00439cea2885ad3b5d3e0840 (patch)
tree3ba6efbb82b31fa69a98df9bd81b3168de110a58 /drivers/mmc/host/tmio_mmc.h
parentmmc: tmio: tmio_mmc_host has .dma (diff)
downloadkernel-qcow2-linux-dfe9a229e0a66b6a00439cea2885ad3b5d3e0840.tar.gz
kernel-qcow2-linux-dfe9a229e0a66b6a00439cea2885ad3b5d3e0840.tar.xz
kernel-qcow2-linux-dfe9a229e0a66b6a00439cea2885ad3b5d3e0840.zip
mmc: tmio: tmio_mmc_host has .write16_hook
Current .write16_hook is implemented under tmio_mmc_data. It goes to tmio_mmc_host by this patch. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc.h')
-rw-r--r--drivers/mmc/host/tmio_mmc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index 49a2559ff489..3fa96b11f76c 100644
--- a/drivers/mmc/host/tmio_mmc.h
+++ b/drivers/mmc/host/tmio_mmc.h
@@ -94,6 +94,8 @@ struct tmio_mmc_host {
struct mutex ios_lock; /* protect set_ios() context */
bool native_hotplug;
bool sdio_irq_enabled;
+
+ int (*write16_hook)(struct tmio_mmc_host *host, int addr);
};
struct tmio_mmc_host *tmio_mmc_host_alloc(struct platform_device *pdev);
@@ -183,7 +185,7 @@ static inline void sd_ctrl_write16(struct tmio_mmc_host *host, int addr, u16 val
/* If there is a hook and it returns non-zero then there
* is an error and the write should be skipped
*/
- if (host->pdata->write16_hook && host->pdata->write16_hook(host, addr))
+ if (host->write16_hook && host->write16_hook(host, addr))
return;
writew(val, host->ctl + (addr << host->pdata->bus_shift));
}