mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
pwm: stm32: Use hweight32 in stm32_pwm_detect_channels
[ Upstream commit41fa8f57c0] Use hweight32() to count the CCxE bits in stm32_pwm_detect_channels(). Since the return value is assigned to chip.npwm, change it to unsigned int as well. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com> Stable-dep-of:19f1016ea9("pwm: stm32: Fix enable count for clk in .probe()") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ade959ed67
commit
0d554b420c
1 changed files with 2 additions and 15 deletions
Loading…
Add table
Add a link
Reference in a new issue