]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pwm: atmel-tcb: Use min() macro
authorShen Lichuan <shenlichuan@vivo.com>
Tue, 27 Aug 2024 07:57:49 +0000 (15:57 +0800)
committerUwe Kleine-König <ukleinek@kernel.org>
Fri, 25 Oct 2024 09:33:34 +0000 (11:33 +0200)
commit51f8137022752c8bab2621e8ee461c5af3dccf52
tree602a69c10cb47788b625388655510f64cd2dcb77
parent517fb4d77c44c7519ae6937329c496894461f416
pwm: atmel-tcb: Use min() macro

Use the min() macro to simplify the atmel_tcb_pwm_apply() function
and improve its readability.

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Link: https://lore.kernel.org/r/20240827075749.67583-1-shenlichuan@vivo.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-atmel-tcb.c