]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit500348c6a833ead09aceb34dad7efc9b8c478b92
tree43e744122c3575fcfa91a2ce4ff95727bd46b800
parentbc32316c9b45e5388c44e8f7ae2d87787d55566c
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