diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2020-04-16 10:02:45 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2020-06-02 15:50:52 +0200 |
commit | aef1a3799b5cb3ba4841f6034497b179646ccc70 (patch) | |
tree | 144592a7fec04b95bedbe61ab9dc9938b4134ef6 /drivers/bus | |
parent | cad0f2960675261584c14e8f0026cd67c60f4864 (diff) | |
download | linux-aef1a3799b5cb3ba4841f6034497b179646ccc70.tar.bz2 |
pwm: imx27: Fix rounding behavior
To not trigger the warnings provided by CONFIG_PWM_DEBUG
- use up-rounding in .get_state()
- don't divide by the result of a division
- don't use the rounded counter value for the period length to calculate
the counter value for the duty cycle
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions