]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit16be3a9f1c0eaaf0ced52f13b101b65422f73bd0
treecd4d7cb42f4ea15831ee7f67e27ee1e358469f9f
parent17df89d66999d90c8c69fc1d3d86a621f1992e88
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