Merge tag 'pwm/for-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm

Pull pwm fixes from Thierry Reding:
"It turned out that relying solely on drivers storing all the PWM state
in hardware was a little premature and causes a number of subtle (and
some not so subtle) regressions. Revert the offending patch for now"

* tag 'pwm/for-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm:
Revert "pwm: Let pwm_get_state() return the last implemented state"

Changed files
+1 -8
drivers
pwm
+1 -8
drivers/pwm/core.c
··· 472 472 if (err) 473 473 return err; 474 474 475 - /* 476 - * .apply might have to round some values in *state, if possible 477 - * read the actually implemented value back. 478 - */ 479 - if (chip->ops->get_state) 480 - chip->ops->get_state(chip, pwm, &pwm->state); 481 - else 482 - pwm->state = *state; 475 + pwm->state = *state; 483 476 } else { 484 477 /* 485 478 * FIXME: restore the initial state in case of error.