dmaengine: hisilicon: Use macros instead of magic number
authorJie Hai <haijie1@huawei.com>
Tue, 30 Aug 2022 06:22:48 +0000 (14:22 +0800)
committerVinod Koul <vkoul@kernel.org>
Sun, 4 Sep 2022 17:12:35 +0000 (22:42 +0530)
commit4aa69cf7ed44590e8702eb970ff6951e33dcdabf
treeae9117741288d5d707b1fb07bf0f513d2ce52272
parent2cbb95883c990d0002a77e13d3278913ab26ad79
dmaengine: hisilicon: Use macros instead of magic number

readl_relaxed_poll_timeout() uses magic numbers 10 and 1000, which
indicate maximum time to sleep between reads in us and timeout in us,
respectively.

Use macros HISI_DMA_POLL_Q_STS_DELAY_US and
HISI_DMA_POLL_Q_STS_TIME_OUT_US instead of these two numbers.

Signed-off-by: Jie Hai <haijie1@huawei.com>
Acked-by: Zhou Wang <wangzhou1@hisilicon.com>
Link: https://lore.kernel.org/r/20220830062251.52993-5-haijie1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/hisi_dma.c