Uwe Kleine-König
b22e8f427c
pwm: atmel: Fix duty cycle calculation in .get_state()
...
[ Upstream commit 453e8b3d8e36ddcb283b3d1698864a03ea45599a ]
The CDTY register contains the number of inactive cycles. .apply() does
this correctly, however .get_state() got this wrong.
Fixes: 651b510a74d4 ("pwm: atmel: Implement .get_state()")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-19 10:13:04 +02:00
..
2020-09-24 09:18:09 +02:00
2020-10-24 10:33:08 -07:00
2020-09-17 15:59:34 +01:00
2021-05-19 10:13:04 +02:00
2020-09-24 09:18:10 +02:00
2020-07-30 11:27:13 +02:00
2020-07-30 11:27:12 +02:00
2020-06-16 11:16:08 +02:00
2020-09-06 15:38:05 +02:00
2020-08-24 11:37:34 +02:00
2020-09-24 09:18:13 +02:00
2020-12-30 11:53:59 +01:00
2020-06-16 11:16:08 +02:00
2021-03-04 11:38:17 +01:00
2020-09-24 09:18:10 +02:00
2020-12-30 11:53:59 +01:00
2020-09-06 15:38:01 +02:00
2020-09-06 15:38:01 +02:00
2020-09-06 15:38:01 +02:00
2020-07-30 11:27:12 +02:00
2020-04-03 21:40:56 +02:00
2020-03-30 16:55:27 +02:00
2020-07-30 11:27:13 +02:00
2020-09-24 09:18:13 +02:00
2020-03-30 18:03:05 +02:00
2020-03-30 18:03:06 +02:00
2021-03-04 11:38:11 +01:00
2020-09-24 09:18:11 +02:00
2020-12-03 09:57:37 -08:00
2020-09-24 09:18:11 +02:00
2020-06-17 20:42:11 +02:00
2020-12-30 11:53:59 +01:00
2020-06-02 14:25:37 +02:00
2020-07-30 11:27:13 +02:00
2020-07-30 11:27:13 +02:00
2020-12-30 11:53:58 +01:00
2020-09-24 09:18:14 +02:00