mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
pwm: rockchip: Don't update the state for the caller of pwm_apply_state()
The pwm-rockchip driver is one of only three PWM drivers which updates the state for the caller of pwm_apply_state(). This might have surprising results if the caller reuses the values expecting them to still represent the same state. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
01ccf903ed
commit
797a5ebc26
1 changed files with 0 additions and 6 deletions
|
@ -212,12 +212,6 @@ static int rockchip_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Update the state with the real hardware, which can differ a bit
|
|
||||||
* because of period/duty_cycle approximation.
|
|
||||||
*/
|
|
||||||
rockchip_pwm_get_state(chip, pwm, state);
|
|
||||||
|
|
||||||
out:
|
out:
|
||||||
clk_disable(pc->pclk);
|
clk_disable(pc->pclk);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue