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:34:54 +0000 (15:34 +0100)
commit3c1af2c0a3cdfbc7f63012b86c8f9b92e6ffddc0
tree20459d880bcaff0c6a1fee19181f07d1e036e192
parentc1385f51fc7dd8128eb2689b6d5801e8538d4629
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