[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGb2v66J7ceyPikD8atnybMD-UsVwAJZ4TRo16LroyVkAOc1Yw@mail.gmail.com>
Date: Tue, 20 Aug 2024 00:25:34 +0800
From: Chen-Yu Tsai <wens@...e.org>
To: Abhishek Tamboli <abhishektamboli9@...il.com>
Cc: pavel@....cz, lee@...nel.org, jernej.skrabec@...il.com,
samuel@...lland.org, linux-leds@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-sunxi@...ts.linux.dev,
skhan@...uxfoundation.org, rbmarliere@...il.com,
linux-kernel-mentees@...ts.linuxfoundation.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] leds: sun50i-a100: Replace msleep() with usleep_range()
On Sat, Aug 17, 2024 at 1:12 AM Abhishek Tamboli
<abhishektamboli9@...il.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@...il.com>
Acked-by: Chen-Yu Tsai <wens@...e.org>
Powered by blists - more mailing lists