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 <jeff@labundy.com> Link: https://lore.kernel.org/r/20230228135508.1798428-4-u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
1 parent 30006b7 commit b20b097

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)