pwm: clps711x: Fix period calculation
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 19 Dec 2018 10:39:24 +0000 (13:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:37:48 +0000 (15:37 +0100)
commit3e5d1310f341064b9325d93fee11221708aa6e67
tree78c1ac65ccd50d2c47ef5189faf70df185e22b4a
parent97dbfe465b0435c79733b9231110c98e4c00f630
pwm: clps711x: Fix period calculation

[ Upstream commit b0f17570b8203c22f139459c86cfbaa0311313ed ]

Commit e39c0df1be5a ("pwm: Introduce the pwm_args concept") has
changed the variable for the period for clps711x-pwm driver, so now
pwm_get/set_period() works with pwm->state.period variable instead
of pwm->args.period.
This patch changes the period variable in other places where it is used.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pwm/pwm-clps711x.c