summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorClemens Gruber <clemens.gruber@pqgruber.com>2021-05-07 16:18:44 +0300
committerThierry Reding <thierry.reding@gmail.com>2021-06-04 12:43:53 +0300
commit6d6e7050276d40b5de97aa950d5d71057f2e2a25 (patch)
tree993071c43eea29fa7c5e61cfb0a51f08d6479d14 /usr
parentae16db1fd3a1b8d1713ba6af5cf27be32918d2b8 (diff)
downloadlinux-6d6e7050276d40b5de97aa950d5d71057f2e2a25.tar.xz
pwm: pca9685: Restrict period change for enabled PWMs
Previously, the last used PWM channel could change the global prescale setting, even if other channels are already in use. Fix it by only allowing the first enabled PWM to change the global chip-wide prescale setting. If there is more than one channel in use, the prescale settings resulting from the chosen periods must match. GPIOs do not count as enabled PWMs as they are not using the prescaler and can't change it. Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions