aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-twl.c
diff options
context:
space:
mode:
authorPhilipp Zabel <[email protected]>2023-10-19 20:07:02 +0000
committerThierry Reding <[email protected]>2023-12-20 15:04:14 +0000
commit41fa8f57c0d269243fe3bde2bce71e82c884b9ad (patch)
tree0d0ba4423c4523a58e781cfed2c03a726250a000 /drivers/pwm/pwm-twl.c
parentpwm: stm32: Make ch parameter unsigned (diff)
downloadkernel-41fa8f57c0d269243fe3bde2bce71e82c884b9ad.tar.gz
kernel-41fa8f57c0d269243fe3bde2bce71e82c884b9ad.zip
pwm: stm32: Use hweight32 in stm32_pwm_detect_channels
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 <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Fabrice Gasnier <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-twl.c')
0 files changed, 0 insertions, 0 deletions