mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
mmc: renesas_sdhi: Replace magic number '0xff' in renesas_sdhi_set_clock()
Replace the magic number '0xff' with CLK_CTL_DIV_MASK macro for finding actual clock in renesas_sdhi_set_clock(). Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20250820104808.94562-1-biju.das.jz@bp.renesas.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
dd7ddd0822
commit
5d0702dc9c
|
|
@ -223,7 +223,7 @@ static void renesas_sdhi_set_clock(struct tmio_mmc_host *host,
|
|||
}
|
||||
|
||||
clock = clk & CLK_CTL_DIV_MASK;
|
||||
if (clock != 0xff)
|
||||
if (clock != CLK_CTL_DIV_MASK)
|
||||
host->mmc->actual_clock /= (1 << (ffs(clock) + 1));
|
||||
|
||||
sd_ctrl_write16(host, CTL_SD_CARD_CLK_CTL, clock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user