From 6d6d97db896e45d32c7aaded353aa88df9dbcc00 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 26 Apr 2023 12:15:23 +0000 Subject: [PATCH] Revert "Revert "pwm: cros-ec: Explicitly set .polarity in .get_state()"" This reverts commit b8301c263840bd4bd976889740383772deaab1c8. It was perserving the ABI, but that is not needed anymore at this point in time. Change-Id: I4e97d4fb46ce6596880749b8486bbeafb3151d4a Signed-off-by: Greg Kroah-Hartman --- drivers/pwm/pwm-cros-ec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index 11684edc0620..e55bc36ed497 100644 --- a/drivers/pwm/pwm-cros-ec.c +++ b/drivers/pwm/pwm-cros-ec.c @@ -198,6 +198,7 @@ static int cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, state->enabled = (ret > 0); state->period = EC_PWM_MAX_DUTY; + state->polarity = PWM_POLARITY_NORMAL; /* * Note that "disabled" and "duty cycle == 0" are treated the same. If