pwm: imx: Move PWMv2 wait for fifo slot code to a separate function
authorLukasz Majewski <l.majewski@majess.pl>
Sun, 29 Jan 2017 21:54:10 +0000 (22:54 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 30 Jan 2017 08:12:48 +0000 (09:12 +0100)
commit73b1ff1f3e5ccc22b31fa44c98460ef05393181c
tree2e48d869a804b72317316bb4b22b503f1b4a9f2f
parent970247a486751c79903c7d853198d0106805c641
pwm: imx: Move PWMv2 wait for fifo slot code to a separate function

The code, which waits for fifo slot, has been extracted from
imx_pwm_config_v2 function and moved to new one - imx_pwm_wait_fifo_slot().

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