mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
mmc: renesas_sdhi: shorten types after refactorization
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>
This commit is contained in:
parent
33ba6fec00
commit
74f6bdb864
2 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ struct renesas_sdhi {
|
||||||
/* Sampling data comparison: 1 for match, 0 for mismatch */
|
/* Sampling data comparison: 1 for match, 0 for mismatch */
|
||||||
DECLARE_BITMAP(smpcmp, BITS_PER_LONG);
|
DECLARE_BITMAP(smpcmp, BITS_PER_LONG);
|
||||||
unsigned int tap_num;
|
unsigned int tap_num;
|
||||||
unsigned long tap_set;
|
unsigned int tap_set;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define host_to_priv(host) \
|
#define host_to_priv(host) \
|
||||||
|
|
|
@ -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)
|
static bool renesas_sdhi_manual_correction(struct tmio_mmc_host *host, bool use_4tap)
|
||||||
{
|
{
|
||||||
struct renesas_sdhi *priv = host_to_priv(host);
|
struct renesas_sdhi *priv = host_to_priv(host);
|
||||||
unsigned long new_tap = priv->tap_set;
|
unsigned int new_tap = priv->tap_set;
|
||||||
u32 val;
|
u32 val;
|
||||||
|
|
||||||
val = sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_RVSREQ);
|
val = sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_RVSREQ);
|
||||||
|
|
Loading…
Reference in a new issue