Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pwm: mediatek: Improve precision in rate calculation
Add a way that turning resolution from in nanosecond into in picosecond to improve noticeably almost 4.5% precision. It's necessary to hold the new resolution with type u64 and thus related operations on u64 are applied instead in those rate calculations. And the patch has a dependency on [1]. [1] http://lists.infradead.org/pipermail/linux-mediatek/2018-March/012225.html Cc: [email protected] Fixes: caf065f ("pwm: Add MediaTek PWM support") Signed-off-by: Sean Wang <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
- Loading branch information