[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87seue4if9.fsf@somnus>
Date: Thu, 05 Sep 2024 10:24:26 +0200
From: Anna-Maria Behnsen <anna-maria@...utronix.de>
To: Mark Brown <broonie@...nel.org>
Cc: Frederic Weisbecker <frederic@...nel.org>, Thomas Gleixner
<tglx@...utronix.de>, Jonathan Corbet <corbet@....net>,
linux-kernel@...r.kernel.org, Len Brown <len.brown@...el.com>, "Rafael J.
Wysocki" <rafael@...nel.org>, Liam Girdwood <lgirdwood@...il.com>
Subject: Re: [PATCH 11/15] regulator: core: Use fsleep() to get best sleep
mechanism
Mark Brown <broonie@...nel.org> writes:
> On Wed, Sep 04, 2024 at 03:05:01PM +0200, Anna-Maria Behnsen wrote:
>> _regulator_delay_helper() implements the recommondation of the outdated
>> documentation which sleep mechanism should be used. There is already a
>> function in place which does everything and also maps to reality called
>> fsleep().
>
>> - * Delay for the requested amount of time as per the guidelines in:
>> + * For details please refere to fsleep() function description.
>
>> -static void _regulator_delay_helper(unsigned int delay)
>> +static inline void _regulator_delay_helper(unsigned int delay)
>
> Gien that this just becomes a trivial wrapper for fsleep() why not just
> replace all the calls with fsleep() and remove the function entirely?
Nothing to say against it! I will change it.
Thanks,
Anna-Maria
Powered by blists - more mailing lists