diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-12-03 23:58:59 +0100 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2022-02-24 13:53:13 +0100 |
commit | 1c1283db07993d0246865abe03765ac09171107b (patch) | |
tree | b7065cbb2de04a920373fe5674151577803fa2b0 /drivers/pwm/pwm-raspberrypi-poe.c | |
parent | 5f027d9b83dbb8c3f9c61c8a53363df86d158a32 (diff) | |
download | linux-1c1283db07993d0246865abe03765ac09171107b.tar.gz linux-1c1283db07993d0246865abe03765ac09171107b.tar.bz2 linux-1c1283db07993d0246865abe03765ac09171107b.zip |
pwm: bcm-kona: Implement .apply() callback
To eventually get rid of all legacy drivers convert this driver to the
modern world implementing .apply().
The conversion wasn't quite straight forward because .config() and
.enable() were special to effectively swap their usual order. This resulted
in calculating the required values twice in some cases when
pwm_apply_state() was called. This is optimized en passant, and the order
of the callbacks is preserved without special jumping through hoops.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-raspberrypi-poe.c')
0 files changed, 0 insertions, 0 deletions