pwm: clps711x: Fix period calculation
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 19 Dec 2018 10:39:24 +0000 (13:39 +0300)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 24 Dec 2018 11:06:55 +0000 (12:06 +0100)
commitb0f17570b8203c22f139459c86cfbaa0311313ed
tree966f149cd9efa8968811058132a5dbc4b3b902bc
parente747cbe257fdc08f1a8b19b4c9f75a377b6f783d
pwm: clps711x: Fix period calculation

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>
drivers/pwm/pwm-clps711x.c