diff mbox series

mmc: core: simplify an expression

Message ID 20200901141931.25357-1-wsa+renesas@sang-engineering.com
State New
Headers show
Series mmc: core: simplify an expression | expand

Commit Message

Wolfram Sang Sept. 1, 2020, 2:19 p.m. UTC
We already have 'host' as a variable, so use it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/mmc/core/mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wolfram Sang Sept. 1, 2020, 2:22 p.m. UTC | #1
On Tue, Sep 01, 2020 at 04:19:31PM +0200, Wolfram Sang wrote:
> We already have 'host' as a variable, so use it.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Sorry, I overlooked this depends on another patch. Will resend within
the whole series.

> ---
>  drivers/mmc/core/mmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
> index 6b3056437b37..6794eb142f05 100644
> --- a/drivers/mmc/core/mmc.c
> +++ b/drivers/mmc/core/mmc.c
> @@ -1173,7 +1173,7 @@ static int mmc_select_hs400(struct mmc_card *card)
>  		host->ops->hs400_downgrade(host);
>  
>  	/* Set host controller to HS timing */
> -	mmc_set_timing(card->host, MMC_TIMING_MMC_HS);
> +	mmc_set_timing(host, MMC_TIMING_MMC_HS);
>  
>  	/* Reduce frequency to HS frequency */
>  	max_dtr = card->ext_csd.hs_max_dtr;
> -- 
> 2.20.1
>
diff mbox series

Patch

diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 6b3056437b37..6794eb142f05 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1173,7 +1173,7 @@  static int mmc_select_hs400(struct mmc_card *card)
 		host->ops->hs400_downgrade(host);
 
 	/* Set host controller to HS timing */
-	mmc_set_timing(card->host, MMC_TIMING_MMC_HS);
+	mmc_set_timing(host, MMC_TIMING_MMC_HS);
 
 	/* Reduce frequency to HS frequency */
 	max_dtr = card->ext_csd.hs_max_dtr;