mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] generic LED driver
@ 2007-06-06 16:57 Robin Farine
  2007-06-06 17:01 ` [PATCH 1/2] LEDS: make default_trigger a const char * Robin Farine
  0 siblings, 1 reply; 2+ messages in thread
From: Robin Farine @ 2007-06-06 16:57 UTC (permalink / raw)
  To: Richard Purdie; +Cc: linux-kernel

Hello,

This generic LED driver implements the code common to all LED 
drivers while delegating actual LED accesses to platform supplied 
code. This allows exotic platforms to declare their LEDs in a few 
line of codes rather than reimplementing a complete LED driver.

I send it in two patches since you may want to apply the first 
trivial patch even if you do not consider the LED driver 
interesting enough for inclusion.

Regards,

Robin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/2] LEDS: make default_trigger a const char *
  2007-06-06 16:57 [PATCH 0/2] generic LED driver Robin Farine
@ 2007-06-06 17:01 ` Robin Farine
  0 siblings, 0 replies; 2+ messages in thread
From: Robin Farine @ 2007-06-06 17:01 UTC (permalink / raw)
  To: Richard Purdie; +Cc: linux-kernel

From: Robin Farine <robin.farine@terminus.org>

Relax the restriction on what can be assigned to the 'default_trigger'
field.

Signed-off-by: Robin Farine <robin.farine@terminus.org>
---
 include/linux/leds.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/leds.h b/include/linux/leds.h
index 88afcef..958a14d 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -40,7 +40,7 @@ struct led_classdev {
 
 	struct class_device	*class_dev;
 	struct list_head	 node;			/* LED Device list */
-	char			*default_trigger;	/* Trigger to use */
+	const char		*default_trigger;	/* Trigger to use */
 
 #ifdef CONFIG_LEDS_TRIGGERS
 	/* Protects the trigger data below */
-- 
1.5.2.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-06 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-06 16:57 [PATCH 0/2] generic LED driver Robin Farine
2007-06-06 17:01 ` [PATCH 1/2] LEDS: make default_trigger a const char * Robin Farine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®