From: Anton Vorontsov Date: Sat, 31 May 2008 14:23:19 +0000 (+0100) Subject: leds: mark led_classdev.default_trigger as const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=781a54e7664cc0089287a90d27086e9656ac68a1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Richard Purdie --- diff --git a/include/linux/leds.h b/include/linux/leds.h index 519df72e939d..e7a5e89932fe 100644 --- a/include/linux/leds.h +++ b/include/linux/leds.h @@ -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 */