[PATCH] leds: sun50i-a100: Replace msleep() with usleep_range()
Chen-Yu Tsai
wens at csie.org
Mon Aug 19 09:25:34 PDT 2024
On Sat, Aug 17, 2024 at 1:12 AM Abhishek Tamboli
<abhishektamboli9 at gmail.com> 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 at gmail.com>
Acked-by: Chen-Yu Tsai <wens at csie.org>
More information about the linux-arm-kernel
mailing list