forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
leds: add output inversion option to backlight trigger
Extend the LED backlight tirgger driver with an option that allows for inverting the trigger output polarity. With the invertion option provided, I (ab)use the backlight trigger for driving a LED that indicates LCD display blank condtition on my Amstrad Delta videophone. Since the machine has no dedicated power LED, it was not possible to distinguish if the display was blanked, or the machine was turned off, without touching it. The invert sysfs control is patterned after a similiar function of the GPIO trigger driver. [[email protected]: make output match input, tighten input checking] [[email protected]: make output match input, tighten input checking] Signed-off-by: Janusz Krzysztofik <[email protected]> Cc: Paul Mundt <[email protected]> Acked-by: Richard Purdie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Showing
2 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,12 @@ Description: | |
scheduler is chosen. Trigger specific parameters can appear in | ||
/sys/class/leds/<led> once a given trigger is selected. | ||
|
||
What: /sys/class/leds/<led>/inverted | ||
Date: January 2011 | ||
KernelVersion: 2.6.38 | ||
Contact: Richard Purdie <[email protected]> | ||
Description: | ||
Invert the LED on/off state. This parameter is specific to | ||
gpio and backlight triggers. In case of the backlight trigger, | ||
it is usefull when driving a LED which is intended to indicate | ||
a device in a standby like state. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters