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@xxxxxxxxxxxxxx> > --- > drivers/input/misc/max8997_haptic.c | 7 +++---- > include/linux/mfd/max8997.h | 3 --- Acked-by: Lee Jones <lee@xxxxxxxxxx> > 2 files changed, 3 insertions(+), 7 deletions(-) -- Lee Jones [李琼斯]