clk: qcom: reset: Use the correct type of sleep/delay based on length
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Fri, 28 Jul 2023 07:57:38 +0000 (09:57 +0200)
committerBjorn Andersson <andersson@kernel.org>
Fri, 4 Aug 2023 03:52:32 +0000 (20:52 -0700)
commit181b66ee7cdd824797fc99b53bec29cf5630a04f
tree8bdfd3cc39ffd555a01af6d2b823913500375f5b
parentb6bcd1c0c27e1f210228346e6d23a2ec0c263e8c
clk: qcom: reset: Use the correct type of sleep/delay based on length

Use the fsleep() helper that (based on the length of the delay, see: [1])
chooses the correct sleep/delay functions.

[1] https://www.kernel.org/doc/Documentation/timers/timers-howto.txt

Fixes: 2cb8a39b6781 ("clk: qcom: reset: Allow specifying custom reset delay")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230726-topic-qcom_reset-v3-1-5958facd5db2@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/reset.c