Skip to content

Commit

Permalink
leds: mark led_classdev.default_trigger as const
Browse files Browse the repository at this point in the history
LED classdev core doesn't modify memory pointed by the default_trigger,
so mark it as const and we'll able to pass const char *s without getting
compiler warnings.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
  • Loading branch information
Anton Vorontsov authored and Richard Purdie committed Jul 23, 2008
1 parent e49575f commit 781a54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/leds.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct led_classdev {

struct device *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 */
Expand Down

0 comments on commit 781a54e

Please sign in to comment.