Re: [PATCH] Input: max8997 - Convert to modern way to get a reference to a PWM
From: Dmitry Torokhov
Date: Fri Nov 18 2022 - 01:18:56 EST
On Thu, Nov 17, 2022 at 08:35:43AM +0100, Uwe Kleine-König wrote:
> pwm_request() isn't recommended to be used any more because it relies on
> global IDs for the PWM which comes with different difficulties.
>
> The new way to do things is to find the right PWM using a reference from
> the platform device. (This can be created either using a device-tree
> or a platform lookup table, see e.g. commit 5a4412d4a82f ("ARM: pxa:
> tavorevb: Use PWM lookup table") how to do this.)
>
> There are no in-tree users, so there are no other code locations that need
> adaption.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
Applied, thank you.
--
Dmitry