Re: [PATCH] pwm: Introduce single-PWM of_xlate function
From: Bjorn Andersson
Date: Fri Apr 23 2021 - 17:38:03 EST
On Fri, Apr 23, 2021 at 4:30 PM Bjorn Andersson
<bjorn.andersson@xxxxxxxxxx> wrote:
>
> The existing pxa driver and the upcoming addition of PWM support in the
> TI sn565dsi86 DSI/eDP bridge driver both has a single PWM channel and
> thereby a need for a of_xlate function with the period as its single
> argument.
>
> Introduce a common helper function in the core that can be used as
> of_xlate by such drivers and migrate the pxa driver to use this.
>
> Signed-off-by: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
> ---
> drivers/pwm/core.c | 24 ++++++++++++++++++++++++
> drivers/pwm/pwm-pxa.c | 16 +---------------
> 2 files changed, 25 insertions(+), 15 deletions(-)
Please disregard this (v1), I apparently left the include file change
in the index and didn't see this until I had posted the patch. This is
corrected in v2.
Regards,
Bjorn