pwm: renesas-tpu: Implement .apply() callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 20 Apr 2022 12:12:37 +0000 (14:12 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 20 May 2022 14:16:10 +0000 (16:16 +0200)
commitec00cd5e63f05461ab48128775c73c851c3c2b18
treee5fb895cc27a689c0889e6a44366980248d7130b
parentff4bcd56c0495dd37f9e843a6aa0682abd7fae37
pwm: renesas-tpu: Implement .apply() callback

To eventually get rid of all legacy drivers convert this driver to the
modern world implementing .apply().

As pwm->state might not be updated in tpu_pwm_apply() before calling
tpu_pwm_config(), an additional parameter is needed for tpu_pwm_config()
to not change the implemented logic.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-renesas-tpu.c