diff options
author | Clemens Gruber <[email protected]> | 2021-05-07 15:18:44 +0200 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2021-06-04 11:43:53 +0200 |
commit | 6d6e7050276d40b5de97aa950d5d71057f2e2a25 (patch) | |
tree | 993071c43eea29fa7c5e61cfb0a51f08d6479d14 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ae16db1fd3a1b8d1713ba6af5cf27be32918d2b8 (diff) |
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 <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions