Skip to content

Commit b20b097

Browse files
Uwe Kleine-Königthierryreding
authored andcommitted
pwm: iqs620a: Explicitly set .polarity in .get_state()
The driver only supports normal polarity. Complete the implementation of .get_state() by setting .polarity accordingly. Fixes: 6f0841a ("pwm: Add support for Azoteq IQS620A PWM generator") Reviewed-by: Jeff LaBundy <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 30006b7 commit b20b097

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/pwm/pwm-iqs620a.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ static int iqs620_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
126126
mutex_unlock(&iqs620_pwm->lock);
127127

128128
state->period = IQS620_PWM_PERIOD_NS;
129+
state->polarity = PWM_POLARITY_NORMAL;
129130

130131
return 0;
131132
}

0 commit comments

Comments
 (0)