aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-omap-dmtimer.c
diff options
context:
space:
mode:
authorJiapeng Chong <[email protected]>2024-08-09 08:05:23 +0000
committerUwe Kleine-König <[email protected]>2024-09-16 13:23:36 +0000
commita550d6ae4d73dc4b9f1a2b3ad3d8d9e355b396be (patch)
tree52f690071ce68ba903070aef2286ff8bc664ad39 /drivers/pwm/pwm-omap-dmtimer.c
parentpwm: Simplify pwm_capture() (diff)
downloadkernel-a550d6ae4d73dc4b9f1a2b3ad3d8d9e355b396be.tar.gz
kernel-a550d6ae4d73dc4b9f1a2b3ad3d8d9e355b396be.zip
pwm: lp3943: Fix an incorrect type in lp3943_pwm_parse_dt()
The return value from the call to of_property_count_u32_elems() is int. However, the return value is being assigned to an u32 variable 'num_outputs', so making 'num_outputs' an int. ./drivers/pwm/pwm-lp3943.c:238:6-17: WARNING: Unsigned expression compared with zero: num_outputs <= 0. Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9710 Signed-off-by: Jiapeng Chong <[email protected]> Fixes: 75f0cb339b78 ("pwm: lp3943: Use of_property_count_u32_elems() to get property length") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-omap-dmtimer.c')
0 files changed, 0 insertions, 0 deletions