diff options
| author | Baruch Siach <[email protected]> | 2021-01-17 13:17:02 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2021-01-19 10:58:22 +0000 |
| commit | e73b0101ae5124bf7cd3fb5d250302ad2f16a416 (patch) | |
| tree | f83b2e8f9fe0d35e1e9c2dc4278e5b0c757ad7fa /tools/perf/builtin-script.c | |
| parent | gpiolib: add a warning on gpiochip->to_irq defined (diff) | |
| download | kernel-e73b0101ae5124bf7cd3fb5d250302ad2f16a416.tar.gz kernel-e73b0101ae5124bf7cd3fb5d250302ad2f16a416.zip | |
gpio: mvebu: fix pwm .get_state period calculation
The period is the sum of on and off values. That is, calculate period as
($on + $off) / clkrate
instead of
$off / clkrate - $on / clkrate
that makes no sense.
Reported-by: Russell King <[email protected]>
Reviewed-by: Uwe Kleine-König <[email protected]>
Fixes: 757642f9a584e ("gpio: mvebu: Add limited PWM support")
Signed-off-by: Baruch Siach <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions
