Skip to contentSkip to conversation

leds-clevo-mail: extend naming convention of leds subsystem

PATCH New Németh Márton 1 participant 1 message Oct 28, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 leds-clevo-mail: extend naming convention of leds subsystem

From: Márton Németh <[email protected]>

Extend the leds subsystem naming convention with the "function" property. For example a LED can indicate if a new mail has arrived.

---

Documentation/leds-class.txt +3 -1
diff -uprN linux-2.6.24-rc1.a/Documentation/leds-class.txt linux-2.6.24-rc1.b/Documentation/leds-class.txt
@@ -39,7 +39,9 @@ LED Device Naming
 
 Is currently of the form:
 
-"devicename:colour"
+"devicename:colour" or
+"devicename:colour:function" or
+"devicename::function"
 
 There have been calls for LED properties such as colour to be exported as
 individual led class attributes. As a solution which doesn't incur as much
drivers/leds/leds-clevo-mail.c +1 -1
diff -uprN linux-2.6.24-rc1.a/drivers/leds/leds-clevo-mail.c linux-2.6.24-rc1.b/drivers/leds/leds-clevo-mail.c
@@ -93,7 +93,7 @@ static void clevo_mail_led_set(struct le
 }
 
 static struct led_classdev clevo_mail_led = {
-	.name			= "clevo",
+	.name			= "clevo::mail",
 	.brightness_set		= clevo_mail_led_set,
 };