pwm: atmel-tcb: Implement .apply callback
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 8 Mar 2021 09:50:12 +0000 (10:50 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 22 Mar 2021 11:06:26 +0000 (12:06 +0100)
commit30882cf130078e6ba7d84d6d56e056b8b5e705d5
treecd4d7cb42f4ea15831ee7f67e27ee1e358469f9f
parentd58cb0ee51ef58acc80f984407979fd5926da9e5
pwm: atmel-tcb: Implement .apply callback

This is just pushing down the core's compat code down into the driver using
the legacy callback nearly unchanged. The call to .enable() was just
dropped from .config() because .apply() calls it unconditionally.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel-tcb.c