Skip to content

Commit 026e680

Browse files
committed
Merge tag 'pwm/for-6.9-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux
Pull pwm fix from Uwe Kleine-König: "This fixes a regression intoduced by an off-by-one in v6.9-rc1 making the pwm-pxa and the pwm driver in ti-sn65dsi86 unusable for most consumer drivers because the default period wasn't set" * tag 'pwm/for-6.9-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux: pwm: Fix setting period with #pwm-cells = <1> and of_pwm_single_xlate()
2 parents 39cd87c + 73dfe97 commit 026e680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ of_pwm_single_xlate(struct pwm_chip *chip, const struct of_phandle_args *args)
443443
if (IS_ERR(pwm))
444444
return pwm;
445445

446-
if (args->args_count > 1)
446+
if (args->args_count > 0)
447447
pwm->args.period = args->args[0];
448448

449449
pwm->args.polarity = PWM_POLARITY_NORMAL;

0 commit comments

Comments
 (0)