generic LED driver
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
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.
Signed-off-by Robin Farine <[email protected]>
--- include/linux/leds.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/leds.h +1 -1
@@ -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