Skip to contentSkip to conversation

generic LED driver

PATCH In review Robin Farine 1 participant 2 messages Jun 6, 2007 LED

lore
Share & tools
lore
#0 lore raw

cover generic LED driver

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

#1 lore raw

PATCH 1/2 LEDS: make default_trigger a const char *

From: Robin Farine <[email protected]>

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

---
 include/linux/leds.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/leds.h +1 -1
index 88afcef..958a14d 100644
@@ -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 */
Signature · 1 line
1.5.2.1