[PATCH V3] led: Backlight trigger for led subsystem

From: Rodolfo Giometti
Date: Tue Oct 07 2008 - 06:10:47 EST


This patch set adds a new led trigger which emulates the backlight
behaviour: the leds are turned off and on each time the display blanks
and unblacks.

Since backlights are usually implemented with leds this patch set is
useful for those drivers whose manage leds controller used as
backlight controller.

The driver simply registers itself into the led subsystem and then the
user may get backlight emulation by setting the "backlight"
trigger. Moreover a driver, which usually manages more than one led,
can use some leds as "led" and the others as "backlights" at user
request.

Rodolfo

---

CHANGELOG:

V2 ---> V3:

* Avoid that two consecutive blank commands as follow:

echo 1 > /sys/class/graphics/fb0/blank
echo 1 > /sys/class/graphics/fb0/blank

may vanish unblank led intensity status.


--
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/