pwm: imx: Move PWMv2 software reset code to a separate function
authorLukasz Majewski <l.majewski@majess.pl>
Sun, 29 Jan 2017 21:54:09 +0000 (22:54 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 30 Jan 2017 08:12:46 +0000 (09:12 +0100)
commit970247a486751c79903c7d853198d0106805c641
tree69f78bffe9faee6c1af6b46688d0b399ddb9a8ba
parentb3c088fe0297d7580bef5d5830fa5fc69ae8443c
pwm: imx: Move PWMv2 software reset code to a separate function

The software reset code has been extracted from imx_pwm_config_v2 function
and moved to new one - imx_pwm_sw_reset().

This change reduces the overall size of imx_pwm_config_v2() and prepares
it for atomic PWM operation.

Suggested-by: Stefan Agner <stefan@agner.ch>
Suggested-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Lukasz Majewski <l.majewski@majess.pl>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-imx.c