summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.h
diff options
context:
space:
mode:
authorMasahiro Yamada2016-11-10 14:22:17 +0100
committerUlf Hansson2016-11-29 09:01:00 +0100
commit178b0fa0d465b2275bec46ebfb98bd5b5d27cf51 (patch)
tree091d9150a965dd250d74715d0592f6232b6c3dfd /drivers/mmc/host/sdhci.h
parentmmc: sdhci-iproc: support standard byte register accesses (diff)
downloadkernel-qcow2-linux-178b0fa0d465b2275bec46ebfb98bd5b5d27cf51.tar.gz
kernel-qcow2-linux-178b0fa0d465b2275bec46ebfb98bd5b5d27cf51.tar.xz
kernel-qcow2-linux-178b0fa0d465b2275bec46ebfb98bd5b5d27cf51.zip
mmc: sdhci: remove unneeded (void *) casts in sdhci_(pltfm_)priv()
The type of host->private is (unsigned long *). No cast is needed to return an opaque pointer. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci.h')
-rw-r--r--drivers/mmc/host/sdhci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index 2570455b219a..9c357760b1cd 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -656,7 +656,7 @@ extern void sdhci_free_host(struct sdhci_host *host);
static inline void *sdhci_priv(struct sdhci_host *host)
{
- return (void *)host->private;
+ return host->private;
}
extern void sdhci_card_detect(struct sdhci_host *host);