summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2021-01-17 15:17:02 +0200
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-01-19 11:58:22 +0100
commite73b0101ae5124bf7cd3fb5d250302ad2f16a416 (patch)
treef83b2e8f9fe0d35e1e9c2dc4278e5b0c757ad7fa /drivers/gpu
parentef38237444ce952daf041ed2885918f9f7d1e997 (diff)
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 <linux@armlinux.org.uk> Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Fixes: 757642f9a584e ("gpio: mvebu: Add limited PWM support") Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpu')
0 files changed, 0 insertions, 0 deletions