Re: [PATCH 21/51] Input: cs40l50: Switch to __pm_runtime_put_autosuspend()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 04, 2024 at 12:41:23PM +0300, Sakari Ailus wrote:
> pm_runtime_put_autosuspend() will soon be changed to include a call to
> pm_runtime_mark_last_busy(). This patch switches the current users to
> __pm_runtime_put_autosuspend() which will continue to have the
> functionality of old pm_runtime_put_autosuspend().
> 
> Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
> ---
>  drivers/input/misc/cs40l50-vibra.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/input/misc/cs40l50-vibra.c b/drivers/input/misc/cs40l50-vibra.c
> index 03bdb7c26ec0..8555f0d93d3f 100644
> --- a/drivers/input/misc/cs40l50-vibra.c
> +++ b/drivers/input/misc/cs40l50-vibra.c
> @@ -307,7 +307,7 @@ static void cs40l50_add_worker(struct work_struct *work)
>  	}
>  err_pm:
>  	pm_runtime_mark_last_busy(vib->dev);
> -	pm_runtime_put_autosuspend(vib->dev);
> +	__pm_runtime_put_autosuspend(vib->dev);

Same comment as with omap4 keypad: prefer to simply remove
pm_runtime_mark_last_busy() once pm_runtime_put_autosuspend() does this
for us.

Thanks.

-- 
Dmitry




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux