]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mmc: renesas_sdhi: shorten types after refactorization
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 20 Apr 2020 17:02:30 +0000 (19:02 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:21:00 +0000 (11:21 +0200)
After TAP refactorization, we can use 'unsigned int' for two more
variables because all the calculations work on this type now.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://lore.kernel.org/r/20200420170230.9091-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi.h
drivers/mmc/host/renesas_sdhi_core.c

index 12d8016672b0915ccf2f09bfd51b5ee61ecc99ed..86efa9d5cd6d225f7d219a2d8a695e27cde1f6b3 100644 (file)
@@ -64,7 +64,7 @@ struct renesas_sdhi {
        /* Sampling data comparison: 1 for match, 0 for mismatch */
        DECLARE_BITMAP(smpcmp, BITS_PER_LONG);
        unsigned int tap_num;
-       unsigned long tap_set;
+       unsigned int tap_set;
 };
 
 #define host_to_priv(host) \
index 1dfe6c32280b649df7c7f85b8ff712b3acaee992..28b0830c425151a5f61e49ca6623064719849f87 100644 (file)
@@ -527,7 +527,7 @@ static int renesas_sdhi_execute_tuning(struct tmio_mmc_host *host, u32 opcode)
 static bool renesas_sdhi_manual_correction(struct tmio_mmc_host *host, bool use_4tap)
 {
        struct renesas_sdhi *priv = host_to_priv(host);
-       unsigned long new_tap = priv->tap_set;
+       unsigned int new_tap = priv->tap_set;
        u32 val;
 
        val = sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_RVSREQ);