From: Joe Perches <joe@perches.com>
To: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@suse.de>, devel@driverdev.osuosl.org
Subject: [PATCH next 11/16] drivers/staging: Use static const char * const where possible
Date: Mon, 13 Sep 2010 21:23:57 -0700 [thread overview]
Message-ID: <ac5ec5db5bf146c80b40494a6719d0eabaa7ae45.1284435710.git.joe@perches.com> (raw)
In-Reply-To: <cover.1284435709.git.joe@perches.com>
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/staging/ath6kl/os/linux/ar6000_drv.c | 14 +++++++-------
drivers/staging/bcm/Debug.c | 5 +++--
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/ath6kl/os/linux/ar6000_drv.c b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
index ff7976e..16c9999 100644
--- a/drivers/staging/ath6kl/os/linux/ar6000_drv.c
+++ b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
@@ -5079,13 +5079,13 @@ ar6000_hbChallengeResp_event(AR_SOFTC_T *ar, A_UINT32 cookie, A_UINT32 source)
void
ar6000_reportError_event(AR_SOFTC_T *ar, WMI_TARGET_ERROR_VAL errorVal)
{
- char *errString[] = {
- [WMI_TARGET_PM_ERR_FAIL] "WMI_TARGET_PM_ERR_FAIL",
- [WMI_TARGET_KEY_NOT_FOUND] "WMI_TARGET_KEY_NOT_FOUND",
- [WMI_TARGET_DECRYPTION_ERR] "WMI_TARGET_DECRYPTION_ERR",
- [WMI_TARGET_BMISS] "WMI_TARGET_BMISS",
- [WMI_PSDISABLE_NODE_JOIN] "WMI_PSDISABLE_NODE_JOIN"
- };
+ static const char * const errString[] = {
+ [WMI_TARGET_PM_ERR_FAIL] "WMI_TARGET_PM_ERR_FAIL",
+ [WMI_TARGET_KEY_NOT_FOUND] "WMI_TARGET_KEY_NOT_FOUND",
+ [WMI_TARGET_DECRYPTION_ERR] "WMI_TARGET_DECRYPTION_ERR",
+ [WMI_TARGET_BMISS] "WMI_TARGET_BMISS",
+ [WMI_PSDISABLE_NODE_JOIN] "WMI_PSDISABLE_NODE_JOIN"
+ };
A_PRINTF("AR6000 Error on Target. Error = 0x%x\n", errorVal);
diff --git a/drivers/staging/bcm/Debug.c b/drivers/staging/bcm/Debug.c
index 213f4bc..d01eb12 100644
--- a/drivers/staging/bcm/Debug.c
+++ b/drivers/staging/bcm/Debug.c
@@ -1,12 +1,13 @@
#include "headers.h"
-char *buff_dump_base[]={"DEC", "HEX", "OCT", "BIN" };
-
static UINT current_debug_level=BCM_SCREAM;
int bcm_print_buffer( UINT debug_level, const char *function_name,
char *file_name, int line_number, unsigned char *buffer, int bufferlen, unsigned int base)
{
+ static const char * const buff_dump_base[] = {
+ "DEC", "HEX", "OCT", "BIN"
+ };
if(debug_level>=current_debug_level)
{
int i=0;
--
1.7.3.rc1
next prev parent reply other threads:[~2010-09-14 4:25 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 4:23 [PATCH next 00/16] treewide: " Joe Perches
2010-09-14 4:23 ` [PATCH next 01/16] arch/alpha: " Joe Perches
2010-09-14 15:37 ` Richard Henderson
2010-09-14 17:03 ` Matt Turner
2010-09-14 4:23 ` [PATCH next 02/16] arch/ia64: " Joe Perches
2010-09-14 4:23 ` [PATCH next 03/16] arch/microblaze: " Joe Perches
2010-09-14 5:59 ` Michal Simek
2010-09-14 4:23 ` [PATCH next 04/16] arch/x86: " Joe Perches
2010-09-14 4:23 ` [PATCH next 05/16] drivers/gpu: " Joe Perches
2010-09-14 4:23 ` [PATCH next 06/16] drivers/isdn: " Joe Perches
2010-09-14 4:23 ` [PATCH next 07/16] drivers/net: " Joe Perches
2010-09-14 4:23 ` [PATCH next 08/16] drivers/net/pcmcia: " Joe Perches
2010-09-14 4:23 ` [PATCH next 09/16] drivers/net/wireless: " Joe Perches
2010-09-14 7:12 ` Ivo Van Doorn
2010-09-14 4:23 ` [PATCH next 10/16] drivers/scsi: " Joe Perches
2010-09-14 4:23 ` Joe Perches [this message]
2010-09-14 4:23 ` [PATCH next 12/16] drivers/usb: " Joe Perches
2010-09-14 4:23 ` [PATCH next 13/16] drivers/watchdog: " Joe Perches
2010-09-14 4:24 ` [PATCH next 14/16] fs: " Joe Perches
2010-09-14 4:24 ` [PATCH next 15/16] net/irda: " Joe Perches
2010-09-14 4:24 ` [PATCH next 16/16] sound: " Joe Perches
2010-09-14 14:17 ` Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ac5ec5db5bf146c80b40494a6719d0eabaa7ae45.1284435710.git.joe@perches.com \
--to=joe@perches.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®