diff mbox

video: backlight: fix const array syntax

Message ID 1309560431-17389-1-git-send-email-Gregory.Dietsche@cuw.edu (mailing list archive)
State New, archived
Headers show

Commit Message

Greg Dietsche July 1, 2011, 10:47 p.m. UTC
Correct the syntax so that both array and pointer are const.

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
---
 drivers/video/backlight/backlight.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Greg Dietsche July 20, 2011, 2:09 a.m. UTC | #1
On 07/01/2011 05:47 PM, Greg Dietsche wrote:
> Correct the syntax so that both array and pointer are const.
>
> Signed-off-by: Greg Dietsche<Gregory.Dietsche@cuw.edu>
> ---
>   drivers/video/backlight/backlight.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c
> index 80d292f..4bda2e7 100644
> --- a/drivers/video/backlight/backlight.c
> +++ b/drivers/video/backlight/backlight.c
> @@ -19,7 +19,7 @@
>   #include<asm/backlight.h>
>   #endif
>
> -static const char const *backlight_types[] = {
> +static const char * const backlight_types[] = {
>   	[BACKLIGHT_RAW] = "raw",
>   	[BACKLIGHT_PLATFORM] = "platform",
>   	[BACKLIGHT_FIRMWARE] = "firmware",
>    

adding trivial@kernel.org to the cc list since this is trivial and no 
one has picked up this patch to date.

Greg

--
To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/video/backlight/backlight.c b/drivers/video/backlight/backlight.c
index 80d292f..4bda2e7 100644
--- a/drivers/video/backlight/backlight.c
+++ b/drivers/video/backlight/backlight.c
@@ -19,7 +19,7 @@ 
 #include <asm/backlight.h>
 #endif
 
-static const char const *backlight_types[] = {
+static const char * const backlight_types[] = {
 	[BACKLIGHT_RAW] = "raw",
 	[BACKLIGHT_PLATFORM] = "platform",
 	[BACKLIGHT_FIRMWARE] = "firmware",