Re: [PATCH] pwm-backlight: Add support for active low PWM backlights

From: Thierry Reding
Date: Tue Nov 06 2012 - 01:44:24 EST


On Mon, Nov 05, 2012 at 04:49:01PM +0100, Alban Bedel wrote:
> Signed-off-by: Alban Bedel <alban.bedel@xxxxxxxxxxxxxxxxx>
> ---
> .../bindings/video/backlight/pwm-backlight.txt | 1 +
> drivers/video/backlight/pwm_bl.c | 22 ++++++++++++++-----
> include/linux/pwm_backlight.h | 1 +
> 3 files changed, 18 insertions(+), 6 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt b/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
> index 1e4fc72..3a40539 100644
> --- a/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
> +++ b/Documentation/devicetree/bindings/video/backlight/pwm-backlight.txt
> @@ -14,6 +14,7 @@ Required properties:
> Optional properties:
> - pwm-names: a list of names for the PWM devices specified in the
> "pwms" property (see PWM binding[0])
> + - active-low: boolean indicating that the backlight use active low logic

Couldn't you use the brightness-levels property to achieve the same
effect?

Thierry

Attachment: pgp00000.pgp
Description: PGP signature