[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200317213627.i2w5a7togr5gh6co@pengutronix.de>
Date: Tue, 17 Mar 2020 22:36:28 +0100
From: Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>
To: Oleksandr Suvorov <oleksandr.suvorov@...adex.com>
Cc: devicetree@...r.kernel.org, linux-pwm@...r.kernel.org,
Paul Barker <pbarker@...sulko.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Marcel Ziswiler <marcel.ziswiler@...adex.com>,
Igor Opaniuk <igor.opaniuk@...adex.com>,
Philippe Schenker <philippe.schenker@...adex.com>,
Rob Herring <robh+dt@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH 3/7] dt-bindings: pwm: add normal PWM polarity flag
On Tue, Mar 17, 2020 at 02:32:27PM +0200, Oleksandr Suvorov wrote:
> PWM can have a normal polarity and a reverted one. The reverted polarity
> value is defined.
> Define the PWM_POLARITY_NORMAL to be used further.
>
> Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@...adex.com>
> ---
>
> include/dt-bindings/pwm/pwm.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/dt-bindings/pwm/pwm.h b/include/dt-bindings/pwm/pwm.h
> index ab9a077e3c7d..6b58caa6385e 100644
> --- a/include/dt-bindings/pwm/pwm.h
> +++ b/include/dt-bindings/pwm/pwm.h
> @@ -10,6 +10,7 @@
> #ifndef _DT_BINDINGS_PWM_PWM_H
> #define _DT_BINDINGS_PWM_PWM_H
>
> +#define PWM_POLARITY_NORMAL 0
> #define PWM_POLARITY_INVERTED (1 << 0)
Maybe define PWM_POLARITY_NORMAL as (0 << 0) to make it more obvious
that it is the inverse of PWM_POLARITY_INVERTED?
But even when kept as is I like hafing PWM_POLARITY_NORMAL in the
binding definitions.
Acked-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Powered by blists - more mailing lists