Commit 303bac9d authored by Sven Schnelle's avatar Sven Schnelle Committed by Heiko Carstens

s390/con3270: fix camelcase in enum members

fix the following and similar checkpatch warnings:

CHECK: Avoid CamelCase: <ESnormal>
+       enum { ESnormal, ESesc, ESsquare, ESparen, ESgetpars };
Signed-off-by: default avatarSven Schnelle <svens@linux.ibm.com>
Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 525c919d
...@@ -1539,22 +1539,22 @@ static void tty3270_goto_xy(struct tty3270 *tp, int cx, int cy) ...@@ -1539,22 +1539,22 @@ static void tty3270_goto_xy(struct tty3270 *tp, int cx, int cy)
*/ */
static void tty3270_escape_sequence(struct tty3270 *tp, char ch) static void tty3270_escape_sequence(struct tty3270 *tp, char ch)
{ {
enum { ESnormal, ESesc, ESsquare, ESparen, ESgetpars }; enum { ES_NORMAL, ES_ESC, ES_SQUARE, ES_PAREN, ES_GETPARS };
if (tp->esc_state == ESnormal) { if (tp->esc_state == ES_NORMAL) {
if (ch == 0x1b) if (ch == 0x1b)
/* Starting new escape sequence. */ /* Starting new escape sequence. */
tp->esc_state = ESesc; tp->esc_state = ES_ESC;
return; return;
} }
if (tp->esc_state == ESesc) { if (tp->esc_state == ES_ESC) {
tp->esc_state = ESnormal; tp->esc_state = ES_NORMAL;
switch (ch) { switch (ch) {
case '[': case '[':
tp->esc_state = ESsquare; tp->esc_state = ES_SQUARE;
break; break;
case '(': case '(':
tp->esc_state = ESparen; tp->esc_state = ES_PAREN;
break; break;
case 'E': case 'E':
tty3270_cr(tp); tty3270_cr(tp);
...@@ -1590,8 +1590,8 @@ static void tty3270_escape_sequence(struct tty3270 *tp, char ch) ...@@ -1590,8 +1590,8 @@ static void tty3270_escape_sequence(struct tty3270 *tp, char ch)
} }
switch (tp->esc_state) { switch (tp->esc_state) {
case ESparen: case ES_PAREN:
tp->esc_state = ESnormal; tp->esc_state = ES_NORMAL;
switch (ch) { switch (ch) {
case 'B': case 'B':
tp->attributes.alternate_charset = 0; tp->attributes.alternate_charset = 0;
...@@ -1601,15 +1601,15 @@ static void tty3270_escape_sequence(struct tty3270 *tp, char ch) ...@@ -1601,15 +1601,15 @@ static void tty3270_escape_sequence(struct tty3270 *tp, char ch)
break; break;
} }
return; return;
case ESsquare: case ES_SQUARE:
tp->esc_state = ESgetpars; tp->esc_state = ES_GETPARS;
memset(tp->esc_par, 0, sizeof(tp->esc_par)); memset(tp->esc_par, 0, sizeof(tp->esc_par));
tp->esc_npar = 0; tp->esc_npar = 0;
tp->esc_ques = (ch == '?'); tp->esc_ques = (ch == '?');
if (tp->esc_ques) if (tp->esc_ques)
return; return;
fallthrough; fallthrough;
case ESgetpars: case ES_GETPARS:
if (ch == ';' && tp->esc_npar < ESCAPE_NPAR - 1) { if (ch == ';' && tp->esc_npar < ESCAPE_NPAR - 1) {
tp->esc_npar++; tp->esc_npar++;
return; return;
...@@ -1623,7 +1623,7 @@ static void tty3270_escape_sequence(struct tty3270 *tp, char ch) ...@@ -1623,7 +1623,7 @@ static void tty3270_escape_sequence(struct tty3270 *tp, char ch)
default: default:
break; break;
} }
tp->esc_state = ESnormal; tp->esc_state = ES_NORMAL;
if (ch == 'n' && !tp->esc_ques) { if (ch == 'n' && !tp->esc_ques) {
if (tp->esc_par[0] == 5) /* Status report. */ if (tp->esc_par[0] == 5) /* Status report. */
kbd_puts_queue(&tp->port, "\033[0n"); kbd_puts_queue(&tp->port, "\033[0n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment