mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
leds: mark led_classdev.default_trigger as const
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>
This commit is contained in:
parent
e49575f46c
commit
781a54e766
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ struct led_classdev {
|
||||||
|
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
struct list_head node; /* LED Device list */
|
struct list_head node; /* LED Device list */
|
||||||
char *default_trigger; /* Trigger to use */
|
const char *default_trigger; /* Trigger to use */
|
||||||
|
|
||||||
#ifdef CONFIG_LEDS_TRIGGERS
|
#ifdef CONFIG_LEDS_TRIGGERS
|
||||||
/* Protects the trigger data below */
|
/* Protects the trigger data below */
|
||||||
|
|
Loading…
Reference in a new issue