pwm: samsung: Implement .apply() callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 28 Mar 2022 07:34:34 +0000 (09:34 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 20 May 2022 13:59:34 +0000 (15:59 +0200)
commitdaa986d5f8d8871e6691b0fe54375f263c754d04
tree359823385050f042564780f464a71aaa59676fd1
parent762c4e7fce551fbd617ae79e55fc8d9850627b8f
pwm: samsung: Implement .apply() callback

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

The size check for state->period is moved to .apply() to make sure that
the values of state->duty_cycle and state->period are passed to
pwm_samsung_config without change while they are discarded to int.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-samsung.c