pwm: sun4i: Always calculate params when applying new parameters
authorClément Péron <peron.clem@gmail.com>
Sun, 24 Nov 2019 17:29:06 +0000 (18:29 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 8 Jan 2020 11:48:33 +0000 (12:48 +0100)
commitfa4d81784681a26bcf7d2a43c6ac5cf991ef28f5
tree5f6961bf32971616e43ef50af55499b16f0fb3bb
parent5b090b430d750961305030232314b6acdb0102aa
pwm: sun4i: Always calculate params when applying new parameters

Bypass mode will require to be re-calculated when the pwm state
is changed.

Remove the condition so pwm_sun4i_calculate is always called.

Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sun4i.c