summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-lpc32xx.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-07-09 12:18:06 +0200
committerUwe Kleine-König <ukleinek@kernel.org>2024-07-10 17:55:12 +0200
commitc1330cb9a56d42632b1af54cda374e01e39dcc59 (patch)
treeaa448f1bd4ab8a9ecd6cc2dcd7cd41454d8203a1 /drivers/pwm/pwm-lpc32xx.c
parent9dd42d019e6399e6e7d9e90759a61ff430625285 (diff)
downloadlwn-c1330cb9a56d42632b1af54cda374e01e39dcc59.tar.gz
lwn-c1330cb9a56d42632b1af54cda374e01e39dcc59.zip
pwm: atmel-tcb: Simplify checking the companion output
The two outputs provided by the supported hardware share some settings, so access to the other PWM is required when one of them is configured. Instead of an explicit if to deterimine the other PWM just use hwpwm ^ 1. Further atcbpwm is never NULL, so drop the corresponding check. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/20240709101806.52394-4-u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'drivers/pwm/pwm-lpc32xx.c')
0 files changed, 0 insertions, 0 deletions