Skip to contentSkip to conversation

Staging: android: fixed const coding style issue in binder.c

PATCH In review Patrik Karlin 2 participants 2 messages Jan 7, 2013 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: android: fixed const coding style issue in binder.c

This is a patch to add const to the lists of strings in binder.c as suggested by checkpatch.pl

---
 drivers/staging/android/binder.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/android/binder.c +3 -3
index 2d12e8a..538ebe2 100644
@@ -3227,7 +3227,7 @@ static void print_binder_proc(struct seq_file *m,
 		m->count = start_pos;
 }
 
-static const char *binder_return_strings[] = {
+static const char * const binder_return_strings[] = {
 	"BR_ERROR",
 	"BR_OK",
 	"BR_TRANSACTION",
@@ -3248,7 +3248,7 @@ static const char *binder_return_strings[] = {
 	"BR_FAILED_REPLY"
 };
 
-static const char *binder_command_strings[] = {
+static const char * const binder_command_strings[] = {
 	"BC_TRANSACTION",
 	"BC_REPLY",
 	"BC_ACQUIRE_RESULT",
@@ -3268,7 +3268,7 @@ static const char *binder_command_strings[] = {
 	"BC_DEAD_BINDER_DONE"
 };
 
-static const char *binder_objstat_strings[] = {
+static const char * const binder_objstat_strings[] = {
 	"proc",
 	"thread",
 	"node",
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw
Quoted 7 lines · Patrik Karlin

This is a patch to add const to the lists of strings in binder.c as suggested by checkpatch.pl

---
 drivers/staging/android/binder.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Sorry, I just applied a patch from someone else that did this same thing, that was sent to me a few weeks ago.

greg k-h