Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pwm: stm32: Don't open-code TIM_CCER_CCxE()

Instead of manually calculating the offset of the channels CCxE bit,
make use of the TIM_CCER_CCxE macro.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/7803f63b1310ddbd706f51f2f42d30b6dd786b03.1743844730.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>

authored by

Uwe Kleine-König and committed by
Uwe Kleine-König
4cbeffc4 461d68d4

+1 -1
+1 -1
drivers/pwm/pwm-stm32.c
··· 88 88 89 89 rate = clk_get_rate(priv->clk); 90 90 91 - if (active_channels(priv) & ~(1 << ch * 4)) { 91 + if (active_channels(priv) & ~TIM_CCER_CCxE(ch + 1)) { 92 92 u64 arr; 93 93 94 94 /*