]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7fbdd0d66090701d01e34f7bd547ac2a0cef7817
tree966f149cd9efa8968811058132a5dbc4b3b902bc
parent4bb8a8c48d05a68e9ab824ec6e528319bffefc93
pwm: clps711x: Fix period calculation

Commit d46d79b43e31 ("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