Revert "Revert "pwm: iqs620a: Explicitly set .polarity in .get_state()""

This reverts commit 301169bd8c.

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 <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2023-04-26 12:15:24 +00:00 committed by Carlos Llamas
parent 6d6d97db89
commit fa46734e23

View File

@ -126,6 +126,7 @@ static int iqs620_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
mutex_unlock(&iqs620_pwm->lock); mutex_unlock(&iqs620_pwm->lock);
state->period = IQS620_PWM_PERIOD_NS; state->period = IQS620_PWM_PERIOD_NS;
state->polarity = PWM_POLARITY_NORMAL;
return 0; return 0;
} }