Skip to content
Commit 54c62232 authored by Jaap Versteegh's avatar Jaap Versteegh Committed by Carles Cufí
Browse files

drivers: pwm: pwm_pca9685 set_pre_scale when not in restart mode



The pca9685 driver assumes the chip will be in "restart" mode
after putting it to sleep. This is not necessarily the case, which
can cause setting the prescaler to fail.
This fix allows the precaler to always be set and only restart the pwm's
when the chip was actually in restart mode after being put to sleep.

Signed-off-by: default avatarJaap Versteegh <j.r.versteegh@gmail.com>
parent ee2e8485
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment