From patchwork Fri Jul 1 22:47:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Dietsche X-Patchwork-Id: 939482 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p61MnGZ1019217 for ; Fri, 1 Jul 2011 22:49:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757882Ab1GAWtP (ORCPT ); Fri, 1 Jul 2011 18:49:15 -0400 Received: from que21.charter.net ([209.225.8.22]:59975 "EHLO que21.charter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756864Ab1GAWtP (ORCPT ); Fri, 1 Jul 2011 18:49:15 -0400 Received: from imp10 ([10.20.200.15]) by mta31.charter.net (InterMail vM.7.09.02.04 201-2219-117-106-20090629) with ESMTP id <20110701224755.QOCI3994.mta31.charter.net@imp10>; Fri, 1 Jul 2011 18:47:55 -0400 Received: from www.farmergreg.com ([96.42.32.177]) by imp10 with smtp.charter.net id 2mnu1h00D3pHlLY05mnuES; Fri, 01 Jul 2011 18:47:55 -0400 X-Authority-Analysis: v=1.1 cv=G6Q69DB3AUoJKS2BpLRaz8MQ2NORN7h5HRzrJMPOhRw= c=1 sm=1 a=Mrh4z0uCQgoA:10 a=lDGNyK2vIvEA:10 a=xzrYXqw+0zwiO4gHSXHcAg==:17 a=0cfFzaZFENUuaGIh7L0A:9 a=xzrYXqw+0zwiO4gHSXHcAg==:117 Received: from red.farmergreg.com ([10.0.0.50]) by www.farmergreg.com with esmtp (Exim 4.72) (envelope-from ) id 1QcmVD-0006qD-WD; Fri, 01 Jul 2011 17:48:00 -0500 Received: from greg by red.farmergreg.com with local (Exim 4.72) (envelope-from ) id 1QcmVF-0004Y1-0U; Fri, 01 Jul 2011 17:48:01 -0500 From: Greg Dietsche To: rpurdie@rpsys.net Cc: lethal@linux-sh.org, linux-fbdev@vger.kernel.org, kernel-janitors@vger.kernel.org, Greg Dietsche Subject: [PATCH] video: backlight: fix const array syntax Date: Fri, 1 Jul 2011 17:47:11 -0500 Message-Id: <1309560431-17389-1-git-send-email-Gregory.Dietsche@cuw.edu> X-Mailer: git-send-email 1.7.2.5 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 01 Jul 2011 22:54:38 +0000 (UTC) Correct the syntax so that both array and pointer are const. Signed-off-by: Greg Dietsche --- 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 #endif -static const char const *backlight_types[] = { +static const char * const backlight_types[] = { [BACKLIGHT_RAW] = "raw", [BACKLIGHT_PLATFORM] = "platform", [BACKLIGHT_FIRMWARE] = "firmware",