diff options
author | Clemens Gruber <clemens.gruber@pqgruber.com> | 2021-05-07 16:18:44 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2021-06-04 12:43:53 +0300 |
commit | 6d6e7050276d40b5de97aa950d5d71057f2e2a25 (patch) | |
tree | 993071c43eea29fa7c5e61cfb0a51f08d6479d14 /mm/pgalloc-track.h | |
parent | ae16db1fd3a1b8d1713ba6af5cf27be32918d2b8 (diff) | |
download | linux-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 'mm/pgalloc-track.h')
0 files changed, 0 insertions, 0 deletions