pwm: core: do not ignore same-state apply

Change-Id: I20e93ab95a4e8638e9059c6401607bd92836ccbf
This commit is contained in:
Cosmin Tanislav 2022-02-09 15:48:54 +02:00 committed by Davide Garberi
parent 273fc607d5
commit 149cead051

View File

@ -462,12 +462,6 @@ int pwm_apply_state(struct pwm_device *pwm, const struct pwm_state *state)
chip = pwm->chip;
if (state->period == pwm->state.period &&
state->duty_cycle == pwm->state.duty_cycle &&
state->polarity == pwm->state.polarity &&
state->enabled == pwm->state.enabled)
return 0;
if (chip->ops->apply) {
err = chip->ops->apply(chip, pwm, state);
if (err)