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()
This commit is contained in:
+1
-1
@@ -443,7 +443,7 @@ of_pwm_single_xlate(struct pwm_chip *chip, const struct of_phandle_args *args)
|
||||
if (IS_ERR(pwm))
|
||||
return pwm;
|
||||
|
||||
if (args->args_count > 1)
|
||||
if (args->args_count > 0)
|
||||
pwm->args.period = args->args[0];
|
||||
|
||||
pwm->args.polarity = PWM_POLARITY_NORMAL;
|
||||
|
||||
Reference in New Issue
Block a user