pwm: ab8500: Explicitly allocate pwm chip base dynamically
authorUwe Kleine-König <uwe@kleine-koenig.org>
Fri, 6 Nov 2020 17:15:47 +0000 (18:15 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 17 Dec 2020 13:18:48 +0000 (14:18 +0100)
commit5e5da1e9fbeecdf9d7a7495d7ae2a37453e38499
tree43e744122c3575fcfa91a2ce4ff95727bd46b800
parent269effd03f6142df4c74814cfdd5f0b041b30bf9
pwm: ab8500: Explicitly allocate pwm chip base dynamically

The ab8500 driver is the last one which doesn't (explicitly) use dynamic
allocation of the pwm id. Looking through the kernel sources I didn't
find a place that relies on this id. And with the device probed from
device tree pdev->id is -1 anyhow; making this explicit looks
beneficial, too.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-ab8500.c