From fa46734e230c9fdb4ba373b028dd9f58fd32fd3f Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 26 Apr 2023 12:15:24 +0000 Subject: [PATCH] Revert "Revert "pwm: iqs620a: Explicitly set .polarity in .get_state()"" This reverts commit 301169bd8ce65cc297b2c1fcff55624f1450ec60. It was perserving the ABI, but that is not needed anymore at this point in time. Change-Id: I0ffa37b35a4abce29f9ddde7bebf0b8df159fa1e Signed-off-by: Greg Kroah-Hartman --- drivers/pwm/pwm-iqs620a.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/pwm-iqs620a.c b/drivers/pwm/pwm-iqs620a.c index 15aae53db5ab..aeb19a274acc 100644 --- a/drivers/pwm/pwm-iqs620a.c +++ b/drivers/pwm/pwm-iqs620a.c @@ -126,6 +126,7 @@ static int iqs620_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, mutex_unlock(&iqs620_pwm->lock); state->period = IQS620_PWM_PERIOD_NS; + state->polarity = PWM_POLARITY_NORMAL; return 0; }