From b8301c263840bd4bd976889740383772deaab1c8 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 22 Apr 2023 08:56:53 +0000 Subject: [PATCH] Revert "pwm: cros-ec: Explicitly set .polarity in .get_state()" This reverts commit 8a3a6a0aca8c92533792bc37a1040aa72941665a. It breaks the current Android kernel abi. It will be brought back at the next KABI break update. Bug: 161946584 Change-Id: I7126fe19db71c01814281eb6518f11ededccc3e3 Signed-off-by: Greg Kroah-Hartman --- drivers/pwm/pwm-cros-ec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index e55bc36ed497..11684edc0620 100644 --- a/drivers/pwm/pwm-cros-ec.c +++ b/drivers/pwm/pwm-cros-ec.c @@ -198,7 +198,6 @@ 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