From 46e141445414caf17ff2279b61068dd85c19db16 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 22 Apr 2023 08:56:50 +0000 Subject: [PATCH] Revert "pwm: sprd: Explicitly set .polarity in .get_state()" This reverts commit c6af1a3ae767e26708b17e329e961b0eacffdfeb. It breaks the current Android kernel abi. It will be brought back at the next KABI break update. Bug: 161946584 Change-Id: I3d34dbad550f7b142403332971783c9246c0ae6f Signed-off-by: Greg Kroah-Hartman --- drivers/pwm/pwm-sprd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pwm/pwm-sprd.c b/drivers/pwm/pwm-sprd.c index 87d5cb7f67d6..bda8bc5af976 100644 --- a/drivers/pwm/pwm-sprd.c +++ b/drivers/pwm/pwm-sprd.c @@ -109,7 +109,6 @@ static int sprd_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, duty = val & SPRD_PWM_DUTY_MSK; tmp = (prescale + 1) * NSEC_PER_SEC * duty; state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, chn->clk_rate); - state->polarity = PWM_POLARITY_NORMAL; /* Disable PWM clocks if the PWM channel is not in enable state. */ if (!state->enabled)