linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] video: backlight: fix const array syntax
@ 2011-07-01 22:47 Greg Dietsche
  2011-07-20  2:09 ` Greg Dietsche
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Dietsche @ 2011-07-01 22:47 UTC (permalink / raw)
  To: linux-fbdev

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",
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] video: backlight: fix const array syntax
  2011-07-01 22:47 [PATCH] video: backlight: fix const array syntax Greg Dietsche
@ 2011-07-20  2:09 ` Greg Dietsche
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Dietsche @ 2011-07-20  2:09 UTC (permalink / raw)
  To: linux-fbdev



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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-20  2:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-01 22:47 [PATCH] video: backlight: fix const array syntax Greg Dietsche
2011-07-20  2:09 ` Greg Dietsche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).