[PATCH v8 12/17] pwm: crc: Implement apply() method to support the new atomic PWM API
Thierry Reding
thierry.reding at gmail.com
Mon Aug 31 11:17:33 UTC 2020
On Sun, Aug 30, 2020 at 02:57:48PM +0200, Hans de Goede wrote:
> Replace the enable, disable and config pwm_ops with an apply op,
> to support the new atomic PWM API.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> ---
> Changes in v6:
> - Rebase on 5.9-rc1
> - Use do_div when calculating level because pwm_state.period and .duty_cycle are now u64
>
> Changes in v3:
> - Keep crc_pwm_calc_clk_div() helper to avoid needless churn
> ---
> drivers/pwm/pwm-crc.c | 89 ++++++++++++++++++++++++++-----------------
> 1 file changed, 54 insertions(+), 35 deletions(-)
Acked-by: Thierry Reding <thierry.reding at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200831/faee4e4c/attachment-0001.sig>
More information about the dri-devel
mailing list