ec: fix duplicate 'const' warning for clang..

It fixes duplicate 'const' warning.

BUG=chromium:475960
TEST=the warning is gone.
BRANCH=none
Signed-off-by: yunlian@chromium.org

Change-Id: I348fbefec4d681bb8b20c6b8cf84acec4561b391
Reviewed-on: https://chromium-review.googlesource.com/266109
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
This commit is contained in:
Yunlian Jiang
2015-04-17 10:29:56 -07:00
committed by ChromeOS Commit Bot
parent 70be516815
commit 908c93bf00
3 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ static int fd = -1;
#define ARRAY_SIZE(t) (sizeof(t) / sizeof(t[0]))
#endif
static const char const *meanings[] = {
static const char * const meanings[] = {
"SUCCESS",
"INVALID_COMMAND",
"ERROR",

View File

@@ -5663,7 +5663,7 @@ static int cmd_tmp006cal_v1(int idx, int argc, char *argv[])
int i, rv, cmdsize;
/* Algorithm 1 parameter names */
static const char const *alg1_pname[] = {
static const char * const alg1_pname[] = {
"s0", "a1", "a2", "b0", "b1", "b2", "c2",
"d0", "d1", "ds", "e0", "e1",
};

View File

@@ -81,15 +81,15 @@ static const int num_operands[] = {
#define OP(NAME, BYTES, MNEMONIC) MNEMONIC,
#include "lightbar_opcode_list.h"
static const char const *opcode_sym[] = {
static const char * const opcode_sym[] = {
LIGHTBAR_OPCODE_TABLE
};
#undef OP
static const char const *control_sym[] = {
static const char * const control_sym[] = {
"beg", "end", "phase", "<invalid>"
};
static const char const *color_sym[] = {
static const char * const color_sym[] = {
"r", "g", "b", "<invalid>"
};