Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 178b0fa0 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Ulf Hansson
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent c833e92b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host);

static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host)
{
	return (void *)host->private;
	return host->private;
}

extern const struct dev_pm_ops sdhci_pltfm_pmops;
+1 −1
Original line number Diff line number Diff line
@@ -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);