pwm: core: do not ignore same-state apply
Change-Id: I20e93ab95a4e8638e9059c6401607bd92836ccbf
This commit is contained in:
parent
273fc607d5
commit
149cead051
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user