diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-07-26 19:06:24 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-08-05 11:31:07 +0900 |
commit | 14bed52d276afd36b9674ee7aa2c2ad9d2f4e59e (patch) | |
tree | ca94e6432dd7394113c956e721aa115353ccee2b /include | |
parent | 6a879ec8e7ac9905ad10b98e9cd585622c64b17c (diff) | |
download | u-boot-14bed52d276afd36b9674ee7aa2c2ad9d2f4e59e.tar.gz u-boot-14bed52d276afd36b9674ee7aa2c2ad9d2f4e59e.tar.xz u-boot-14bed52d276afd36b9674ee7aa2c2ad9d2f4e59e.zip |
mmc: sdhci: remove the unnecessary arguments for sdhci_setup_cfg
Some arguments don't need to pass to sdhci_setup_cfg.
Generic variable can be used in sdhci_setup_cfg, and some arguments are
already included in sdhci_host struct.
It's enough that just pass the board specific things to sdhci_setup_cfg().
After removing the unnecessary arguments, it's more simpler than before.
It doesn't consider "Version" and "Capabilities" anymore in each SoC
driver.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/sdhci.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/sdhci.h b/include/sdhci.h index 693ecc144b..fcef4dc065 100644 --- a/include/sdhci.h +++ b/include/sdhci.h @@ -367,18 +367,12 @@ static inline u8 sdhci_readb(struct sdhci_host *host, int reg) * See msm_sdhci.c for an example. * * @cfg: Configuration structure to fill in (generally &plat->mmc) - * @name: Device name (normally dev->name) - * @caps: Host capabilities (MMC_MODE_...) + * @host: SDHCI host structure * @max_clk: Maximum supported clock speed in HZ (0 for default) * @min_clk: Minimum supported clock speed in HZ (0 for default) - * @version: Host controller version (generally read from the - * SDHCI_HOST_VERSION register) - * @quirks: Quick flags (SDHCI_QUIRK_...) - * @host_caps: Additional host capabilities (0 if none) */ -int sdhci_setup_cfg(struct mmc_config *cfg, const char *name, - uint caps, u32 max_clk, u32 min_clk, uint version, - uint quirks, uint host_caps); +int sdhci_setup_cfg(struct mmc_config *cfg, struct sdhci_host *host, + u32 max_clk, u32 min_clk); /** * sdhci_bind() - Set up a new MMC block device |