Re: [PATCH] leds: triggers: introduce gpio led trigger

From: Richard Purdie
Date: Tue Feb 17 2009 - 18:10:11 EST


On Tue, 2009-02-17 at 13:18 +0200, Felipe Balbi wrote:
> From: Felipe Balbi <me@xxxxxxxxxxxxxxxx>
>
> The gpio led trigger will allow leds to be triggered by
> gpio events.
>
> When we give the led a gpio number, the trigger will
> request_irq() on that so we don't have to keep polling
> for gpio state.
>
> It's useful for usecases as n810's keypad leds that could
> be triggered by the gpio event generated when user slides
> up to show the keypad.
>
> We also provide means for userland to tell us what is the
> desired brightness for that special led when it goes on
> so userland could use information from ambient light sensors
> and not set led brightness too high if it's not necessary.
>
> This trigger was tested with n810.

Added to the LED tree, thanks.

Richard


--
Richard Purdie
Intel Open Source Technology Centre

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/