]> www.infradead.org Git - users/willy/pagecache.git/commit
pwm: lpc32xx: Remove handling of PWM channels
authorVladimir Zapolskiy <vz@mleia.com>
Mon, 17 Jul 2023 15:52:57 +0000 (17:52 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 28 Jul 2023 08:16:57 +0000 (10:16 +0200)
commit3ccb179aa40d931eb00ef8910d7b812a95659563
tree921be0afdcb7539eae249e680c3a2333ca7d899d
parentb22bb0d6a828b4eab579056647d2f362ac116cf2
pwm: lpc32xx: Remove handling of PWM channels

Because LPC32xx PWM controllers have only a single output which is
registered as the only PWM device/channel per controller, it is known in
advance that pwm->hwpwm value is always 0. On basis of this fact
simplify the code by removing operations with pwm->hwpwm, there is no
controls which require channel number as input.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fixes: 3d2813fb17e5 ("pwm: lpc32xx: Don't modify HW state in .probe() after the PWM chip was registered")
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpc32xx.c