Browse Source
On kernels 4.7+ duty_cycle should always be less than period. Otherways, we'll get a EINVAL. It makes sense to set duty_cycle to 0, as duty_cycle doesn't really make sense without a proper period. A proper way to handle these errors might be to call pwm_adjust_config in every pwmchip backend but it's unrealistic to hope that all vendors will do it quickly.master
Georgii Staroselskii
7 years ago
committed by
Lucas De Marchi
1 changed files with 2 additions and 0 deletions
Loading…
Reference in new issue