[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y3YJR4hIRdDacrkh@google.com>
Date: Thu, 17 Nov 2022 10:13:27 +0000
From: Lee Jones <lee@...nel.org>
To: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
Cc: Dmitry Torokhov <dmitry.torokhov@...il.com>,
linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
Thierry Reding <thierry.reding@...il.com>,
linux-pwm@...r.kernel.org, kernel@...gutronix.de
Subject: Re: [PATCH] Input: max8997 - Convert to modern way to get a
reference to a PWM
On Thu, 17 Nov 2022, 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@...gutronix.de>
> ---
> drivers/input/misc/max8997_haptic.c | 7 +++----
> include/linux/mfd/max8997.h | 3 ---
Acked-by: Lee Jones <lee@...nel.org>
> 2 files changed, 3 insertions(+), 7 deletions(-)
--
Lee Jones [李琼斯]
Powered by blists - more mailing lists