Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pwm: atmel: Fix duty cycle calculation in .get_state()
[ Upstream commit 453e8b3 ] The CDTY register contains the number of inactive cycles. .apply() does this correctly, however .get_state() got this wrong. Fixes: 651b510 ("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>
- Loading branch information