Re: [PATCH v8 13/17] pwm: crc: Implement get_state() method

Thierry Reding
2020-08-31T11:24:28Z

[-- Attachment #1: Type: text/plain, Size: 918 bytes --]

On Sun, Aug 30, 2020 at 02:57:49PM +0200, Hans de Goede wrote:
> Implement the pwm_ops.get_state() method to complete the support for the
> new atomic PWM API.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> Changes in v6:
> - Rebase on 5.9-rc1
> - Use DIV_ROUND_UP_ULL because pwm_state.period and .duty_cycle are now u64
>
> Changes in v5:
> - Fix an indentation issue
>
> Changes in v4:
> - Use DIV_ROUND_UP when calculating the period and duty_cycle from the
> controller's register values
>
> Changes in v3:
> - Add Andy's Reviewed-by tag
> - Remove extra whitespace to align some code after assignments (requested by
> Uwe Kleine-König)
> ---
> drivers/pwm/pwm-crc.c | 31 +++++++++++++++++++++++++++++++
> 1 file changed, 31 insertions(+)

Acked-by: Thierry Reding <thierry.reding@gmail.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]