Re: [PATCH] leds: sun50i-a100: Replace msleep() with usleep_range()

From: Chen-Yu Tsai
Date: Mon Aug 19 2024 - 12:26:17 EST


On Sat, Aug 17, 2024 at 1:12 AM Abhishek Tamboli
<abhishektamboli9@xxxxxxxxx> wrote:
>
> Replace msleep() with usleep_range() in sun50i_a100_ledc_suspend()
> to address the checkpatch.pl warning. msleep() for such short delay
> can lead to inaccurate sleep times. Switch to usleep_range()
> provide more precise delay.
>
> Fix the following warning from checkpatch.pl:
>
> WARNING: msleep < 20ms can sleep for up to 20ms;
> see Documentation/timers/timers-howto.rst
> + msleep(1);
>
> Signed-off-by: Abhishek Tamboli <abhishektamboli9@xxxxxxxxx>

Acked-by: Chen-Yu Tsai <wens@xxxxxxxx>