* [PATCH 2/4] leds-clevo-mail: extend naming convention of leds subsystem
@ 2007-10-28 11:22 Németh Márton
0 siblings, 0 replies; only message in thread
From: Németh Márton @ 2007-10-28 11:22 UTC (permalink / raw)
To: Richard Purdie
Cc: Randy Dunlap, Dmitry Torokhov, Rodrigo Pereira, linux-kernel
From: Márton Németh <nm127@freemail.hu>
Extend the leds subsystem naming convention with the "function"
property. For example a LED can indicate if a new mail has arrived.
Signed-off-by: Márton Németh <nm127@freemail.hu>
---
diff -uprN linux-2.6.24-rc1.a/Documentation/leds-class.txt linux-2.6.24-rc1.b/Documentation/leds-class.txt
--- linux-2.6.24-rc1.a/Documentation/leds-class.txt 2007-10-28 09:01:56.000000000 +0100
+++ linux-2.6.24-rc1.b/Documentation/leds-class.txt 2007-10-28 09:20:07.000000000 +0100
@@ -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
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
--- linux-2.6.24-rc1.a/drivers/leds/leds-clevo-mail.c 2007-10-28 10:18:42.000000000 +0100
+++ linux-2.6.24-rc1.b/drivers/leds/leds-clevo-mail.c 2007-10-28 10:18:56.000000000 +0100
@@ -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,
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-28 10:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-28 11:22 [PATCH 2/4] leds-clevo-mail: extend naming convention of leds subsystem Németh Márton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox