Commit e6d98bb8 authored by Sven Schnelle's avatar Sven Schnelle Committed by Heiko Carstens

s390/con3270: fix formatting issues

fix function prototypes split over two lines like:

static void
foobar(void)

and fix superfluous spaces in declarations like

foo * bar
Signed-off-by: default avatarSven Schnelle <svens@linux.ibm.com>
Acked-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Tested-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent fbaee746
...@@ -134,8 +134,7 @@ static void tty3270_set_timer(struct tty3270 *tp, int expires) ...@@ -134,8 +134,7 @@ static void tty3270_set_timer(struct tty3270 *tp, int expires)
/* /*
* The input line are the two last lines of the screen. * The input line are the two last lines of the screen.
*/ */
static void static void tty3270_update_prompt(struct tty3270 *tp, char *input, int count)
tty3270_update_prompt(struct tty3270 *tp, char *input, int count)
{ {
struct string *line; struct string *line;
unsigned int off; unsigned int off;
...@@ -161,8 +160,7 @@ tty3270_update_prompt(struct tty3270 *tp, char *input, int count) ...@@ -161,8 +160,7 @@ tty3270_update_prompt(struct tty3270 *tp, char *input, int count)
tp->update_flags |= TTY_UPDATE_INPUT; tp->update_flags |= TTY_UPDATE_INPUT;
} }
static void static void tty3270_create_prompt(struct tty3270 *tp)
tty3270_create_prompt(struct tty3270 *tp)
{ {
static const unsigned char blueprint[] = static const unsigned char blueprint[] =
{ TO_SBA, 0, 0, 0x6e, TO_SF, TF_INPUT, { TO_SBA, 0, 0, 0x6e, TO_SF, TF_INPUT,
...@@ -192,8 +190,7 @@ tty3270_create_prompt(struct tty3270 *tp) ...@@ -192,8 +190,7 @@ tty3270_create_prompt(struct tty3270 *tp)
* The status line is the last line of the screen. It shows the string * The status line is the last line of the screen. It shows the string
* "Running"/"Holding" in the lower right corner of the screen. * "Running"/"Holding" in the lower right corner of the screen.
*/ */
static void static void tty3270_update_status(struct tty3270 *tp)
tty3270_update_status(struct tty3270 * tp)
{ {
char *str; char *str;
...@@ -203,8 +200,7 @@ tty3270_update_status(struct tty3270 * tp) ...@@ -203,8 +200,7 @@ tty3270_update_status(struct tty3270 * tp)
tp->update_flags |= TTY_UPDATE_STATUS; tp->update_flags |= TTY_UPDATE_STATUS;
} }
static void static void tty3270_create_status(struct tty3270 *tp)
tty3270_create_status(struct tty3270 * tp)
{ {
static const unsigned char blueprint[] = static const unsigned char blueprint[] =
{ TO_SBA, 0, 0, TO_SF, TF_LOG, TO_SA, TAT_COLOR, TAC_GREEN, { TO_SBA, 0, 0, TO_SF, TF_LOG, TO_SA, TAT_COLOR, TAC_GREEN,
...@@ -226,8 +222,7 @@ tty3270_create_status(struct tty3270 * tp) ...@@ -226,8 +222,7 @@ tty3270_create_status(struct tty3270 * tp)
* Set output offsets to 3270 datastream fragment of a tty string. * Set output offsets to 3270 datastream fragment of a tty string.
* (TO_SBA offset at the start and TO_RA offset at the end of the string) * (TO_SBA offset at the start and TO_RA offset at the end of the string)
*/ */
static void static void tty3270_update_string(struct tty3270 *tp, struct string *line, int nr)
tty3270_update_string(struct tty3270 *tp, struct string *line, int nr)
{ {
unsigned char *cp; unsigned char *cp;
...@@ -242,8 +237,7 @@ tty3270_update_string(struct tty3270 *tp, struct string *line, int nr) ...@@ -242,8 +237,7 @@ tty3270_update_string(struct tty3270 *tp, struct string *line, int nr)
/* /*
* Rebuild update list to print all lines. * Rebuild update list to print all lines.
*/ */
static void static void tty3270_rebuild_update(struct tty3270 *tp)
tty3270_rebuild_update(struct tty3270 *tp)
{ {
struct string *s, *n; struct string *s, *n;
int line, nr_up; int line, nr_up;
...@@ -273,8 +267,7 @@ tty3270_rebuild_update(struct tty3270 *tp) ...@@ -273,8 +267,7 @@ tty3270_rebuild_update(struct tty3270 *tp)
* Alloc string for size bytes. If there is not enough room in * Alloc string for size bytes. If there is not enough room in
* freemem, free strings until there is room. * freemem, free strings until there is room.
*/ */
static struct string * static struct string *tty3270_alloc_string(struct tty3270 *tp, size_t size)
tty3270_alloc_string(struct tty3270 *tp, size_t size)
{ {
struct string *s, *n; struct string *s, *n;
...@@ -304,8 +297,7 @@ tty3270_alloc_string(struct tty3270 *tp, size_t size) ...@@ -304,8 +297,7 @@ tty3270_alloc_string(struct tty3270 *tp, size_t size)
/* /*
* Add an empty line to the list. * Add an empty line to the list.
*/ */
static void static void tty3270_blank_line(struct tty3270 *tp)
tty3270_blank_line(struct tty3270 *tp)
{ {
static const unsigned char blueprint[] = static const unsigned char blueprint[] =
{ TO_SBA, 0, 0, TO_SA, TAT_EXTHI, TAX_RESET, { TO_SBA, 0, 0, TO_SA, TAT_EXTHI, TAX_RESET,
...@@ -324,8 +316,7 @@ tty3270_blank_line(struct tty3270 *tp) ...@@ -324,8 +316,7 @@ tty3270_blank_line(struct tty3270 *tp)
/* /*
* Create a blank screen and remove all lines from the history. * Create a blank screen and remove all lines from the history.
*/ */
static void static void tty3270_blank_screen(struct tty3270 *tp)
tty3270_blank_screen(struct tty3270 *tp)
{ {
struct string *s, *n; struct string *s, *n;
int i; int i;
...@@ -345,8 +336,7 @@ tty3270_blank_screen(struct tty3270 *tp) ...@@ -345,8 +336,7 @@ tty3270_blank_screen(struct tty3270 *tp)
/* /*
* Write request completion callback. * Write request completion callback.
*/ */
static void static void tty3270_write_callback(struct raw3270_request *rq, void *data)
tty3270_write_callback(struct raw3270_request *rq, void *data)
{ {
struct tty3270 *tp = container_of(rq->view, struct tty3270, view); struct tty3270 *tp = container_of(rq->view, struct tty3270, view);
...@@ -362,8 +352,7 @@ tty3270_write_callback(struct raw3270_request *rq, void *data) ...@@ -362,8 +352,7 @@ tty3270_write_callback(struct raw3270_request *rq, void *data)
/* /*
* Update 3270 display. * Update 3270 display.
*/ */
static void static void tty3270_update(struct timer_list *t)
tty3270_update(struct timer_list *t)
{ {
struct tty3270 *tp = from_timer(tp, t, timer); struct tty3270 *tp = from_timer(tp, t, timer);
static char invalid_sba[2] = { 0xff, 0xff }; static char invalid_sba[2] = { 0xff, 0xff };
...@@ -456,8 +445,7 @@ tty3270_update(struct timer_list *t) ...@@ -456,8 +445,7 @@ tty3270_update(struct timer_list *t)
/* /*
* Command recalling. * Command recalling.
*/ */
static void static void tty3270_rcl_add(struct tty3270 *tp, char *input, int len)
tty3270_rcl_add(struct tty3270 *tp, char *input, int len)
{ {
struct string *s; struct string *s;
...@@ -476,8 +464,7 @@ tty3270_rcl_add(struct tty3270 *tp, char *input, int len) ...@@ -476,8 +464,7 @@ tty3270_rcl_add(struct tty3270 *tp, char *input, int len)
tp->rcl_nr++; tp->rcl_nr++;
} }
static void static void tty3270_rcl_backward(struct kbd_data *kbd)
tty3270_rcl_backward(struct kbd_data *kbd)
{ {
struct tty3270 *tp = container_of(kbd->port, struct tty3270, port); struct tty3270 *tp = container_of(kbd->port, struct tty3270, port);
struct string *s; struct string *s;
...@@ -503,8 +490,7 @@ tty3270_rcl_backward(struct kbd_data *kbd) ...@@ -503,8 +490,7 @@ tty3270_rcl_backward(struct kbd_data *kbd)
/* /*
* Deactivate tty view. * Deactivate tty view.
*/ */
static void static void tty3270_exit_tty(struct kbd_data *kbd)
tty3270_exit_tty(struct kbd_data *kbd)
{ {
struct tty3270 *tp = container_of(kbd->port, struct tty3270, port); struct tty3270 *tp = container_of(kbd->port, struct tty3270, port);
...@@ -514,8 +500,7 @@ tty3270_exit_tty(struct kbd_data *kbd) ...@@ -514,8 +500,7 @@ tty3270_exit_tty(struct kbd_data *kbd)
/* /*
* Scroll forward in history. * Scroll forward in history.
*/ */
static void static void tty3270_scroll_forward(struct kbd_data *kbd)
tty3270_scroll_forward(struct kbd_data *kbd)
{ {
struct tty3270 *tp = container_of(kbd->port, struct tty3270, port); struct tty3270 *tp = container_of(kbd->port, struct tty3270, port);
int nr_up; int nr_up;
...@@ -536,8 +521,7 @@ tty3270_scroll_forward(struct kbd_data *kbd) ...@@ -536,8 +521,7 @@ tty3270_scroll_forward(struct kbd_data *kbd)
/* /*
* Scroll backward in history. * Scroll backward in history.
*/ */
static void static void tty3270_scroll_backward(struct kbd_data *kbd)
tty3270_scroll_backward(struct kbd_data *kbd)
{ {
struct tty3270 *tp = container_of(kbd->port, struct tty3270, port); struct tty3270 *tp = container_of(kbd->port, struct tty3270, port);
int nr_up; int nr_up;
...@@ -558,8 +542,7 @@ tty3270_scroll_backward(struct kbd_data *kbd) ...@@ -558,8 +542,7 @@ tty3270_scroll_backward(struct kbd_data *kbd)
/* /*
* Pass input line to tty. * Pass input line to tty.
*/ */
static void static void tty3270_read_tasklet(unsigned long data)
tty3270_read_tasklet(unsigned long data)
{ {
struct raw3270_request *rrq = (struct raw3270_request *)data; struct raw3270_request *rrq = (struct raw3270_request *)data;
static char kreset_data = TW_KR; static char kreset_data = TW_KR;
...@@ -615,8 +598,7 @@ tty3270_read_tasklet(unsigned long data) ...@@ -615,8 +598,7 @@ tty3270_read_tasklet(unsigned long data)
/* /*
* Read request completion callback. * Read request completion callback.
*/ */
static void static void tty3270_read_callback(struct raw3270_request *rq, void *data)
tty3270_read_callback(struct raw3270_request *rq, void *data)
{ {
struct tty3270 *tp = container_of(rq->view, struct tty3270, view); struct tty3270 *tp = container_of(rq->view, struct tty3270, view);
raw3270_get_view(rq->view); raw3270_get_view(rq->view);
...@@ -627,8 +609,7 @@ tty3270_read_callback(struct raw3270_request *rq, void *data) ...@@ -627,8 +609,7 @@ tty3270_read_callback(struct raw3270_request *rq, void *data)
/* /*
* Issue a read request. Call with device lock. * Issue a read request. Call with device lock.
*/ */
static void static void tty3270_issue_read(struct tty3270 *tp, int lock)
tty3270_issue_read(struct tty3270 *tp, int lock)
{ {
struct raw3270_request *rrq; struct raw3270_request *rrq;
int rc; int rc;
...@@ -655,8 +636,7 @@ tty3270_issue_read(struct tty3270 *tp, int lock) ...@@ -655,8 +636,7 @@ tty3270_issue_read(struct tty3270 *tp, int lock)
/* /*
* Hang up the tty * Hang up the tty
*/ */
static void static void tty3270_hangup_tasklet(unsigned long data)
tty3270_hangup_tasklet(unsigned long data)
{ {
struct tty3270 *tp = (struct tty3270 *)data; struct tty3270 *tp = (struct tty3270 *)data;
tty_port_tty_hangup(&tp->port, true); tty_port_tty_hangup(&tp->port, true);
...@@ -666,8 +646,7 @@ tty3270_hangup_tasklet(unsigned long data) ...@@ -666,8 +646,7 @@ tty3270_hangup_tasklet(unsigned long data)
/* /*
* Switch to the tty view. * Switch to the tty view.
*/ */
static int static int tty3270_activate(struct raw3270_view *view)
tty3270_activate(struct raw3270_view *view)
{ {
struct tty3270 *tp = container_of(view, struct tty3270, view); struct tty3270 *tp = container_of(view, struct tty3270, view);
...@@ -676,16 +655,14 @@ tty3270_activate(struct raw3270_view *view) ...@@ -676,16 +655,14 @@ tty3270_activate(struct raw3270_view *view)
return 0; return 0;
} }
static void static void tty3270_deactivate(struct raw3270_view *view)
tty3270_deactivate(struct raw3270_view *view)
{ {
struct tty3270 *tp = container_of(view, struct tty3270, view); struct tty3270 *tp = container_of(view, struct tty3270, view);
del_timer(&tp->timer); del_timer(&tp->timer);
} }
static void static void tty3270_irq(struct tty3270 *tp, struct raw3270_request *rq, struct irb *irb)
tty3270_irq(struct tty3270 *tp, struct raw3270_request *rq, struct irb *irb)
{ {
/* Handle ATTN. Schedule tasklet to read aid. */ /* Handle ATTN. Schedule tasklet to read aid. */
if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) { if (irb->scsw.cmd.dstat & DEV_STAT_ATTENTION) {
...@@ -714,8 +691,7 @@ tty3270_irq(struct tty3270 *tp, struct raw3270_request *rq, struct irb *irb) ...@@ -714,8 +691,7 @@ tty3270_irq(struct tty3270 *tp, struct raw3270_request *rq, struct irb *irb)
/* /*
* Allocate tty3270 structure. * Allocate tty3270 structure.
*/ */
static struct tty3270 * static struct tty3270 *tty3270_alloc_view(void)
tty3270_alloc_view(void)
{ {
struct tty3270 *tp; struct tty3270 *tp;
int pages; int pages;
...@@ -785,8 +761,7 @@ tty3270_alloc_view(void) ...@@ -785,8 +761,7 @@ tty3270_alloc_view(void)
/* /*
* Free tty3270 structure. * Free tty3270 structure.
*/ */
static void static void tty3270_free_view(struct tty3270 *tp)
tty3270_free_view(struct tty3270 *tp)
{ {
int pages; int pages;
...@@ -804,8 +779,7 @@ tty3270_free_view(struct tty3270 *tp) ...@@ -804,8 +779,7 @@ tty3270_free_view(struct tty3270 *tp)
/* /*
* Allocate tty3270 screen. * Allocate tty3270 screen.
*/ */
static struct tty3270_line * static struct tty3270_line *tty3270_alloc_screen(unsigned int rows, unsigned int cols)
tty3270_alloc_screen(unsigned int rows, unsigned int cols)
{ {
struct tty3270_line *screen; struct tty3270_line *screen;
unsigned long size; unsigned long size;
...@@ -833,8 +807,7 @@ tty3270_alloc_screen(unsigned int rows, unsigned int cols) ...@@ -833,8 +807,7 @@ tty3270_alloc_screen(unsigned int rows, unsigned int cols)
/* /*
* Free tty3270 screen. * Free tty3270 screen.
*/ */
static void static void tty3270_free_screen(struct tty3270_line *screen, unsigned int rows)
tty3270_free_screen(struct tty3270_line *screen, unsigned int rows)
{ {
int lines; int lines;
...@@ -886,8 +859,7 @@ static void tty3270_resize_work(struct work_struct *work) ...@@ -886,8 +859,7 @@ static void tty3270_resize_work(struct work_struct *work)
tty_kref_put(tty); tty_kref_put(tty);
} }
static void static void tty3270_resize(struct raw3270_view *view, int model, int rows, int cols)
tty3270_resize(struct raw3270_view *view, int model, int rows, int cols)
{ {
struct tty3270 *tp = container_of(view, struct tty3270, view); struct tty3270 *tp = container_of(view, struct tty3270, view);
...@@ -902,8 +874,7 @@ tty3270_resize(struct raw3270_view *view, int model, int rows, int cols) ...@@ -902,8 +874,7 @@ tty3270_resize(struct raw3270_view *view, int model, int rows, int cols)
/* /*
* Unlink tty3270 data structure from tty. * Unlink tty3270 data structure from tty.
*/ */
static void static void tty3270_release(struct raw3270_view *view)
tty3270_release(struct raw3270_view *view)
{ {
struct tty3270 *tp = container_of(view, struct tty3270, view); struct tty3270 *tp = container_of(view, struct tty3270, view);
struct tty_struct *tty = tty_port_tty_get(&tp->port); struct tty_struct *tty = tty_port_tty_get(&tp->port);
...@@ -920,8 +891,7 @@ tty3270_release(struct raw3270_view *view) ...@@ -920,8 +891,7 @@ tty3270_release(struct raw3270_view *view)
/* /*
* Free tty3270 data structure * Free tty3270 data structure
*/ */
static void static void tty3270_free(struct raw3270_view *view)
tty3270_free(struct raw3270_view *view)
{ {
struct tty3270 *tp = container_of(view, struct tty3270, view); struct tty3270 *tp = container_of(view, struct tty3270, view);
...@@ -933,8 +903,7 @@ tty3270_free(struct raw3270_view *view) ...@@ -933,8 +903,7 @@ tty3270_free(struct raw3270_view *view)
/* /*
* Delayed freeing of tty3270 views. * Delayed freeing of tty3270 views.
*/ */
static void static void tty3270_del_views(void)
tty3270_del_views(void)
{ {
int i; int i;
...@@ -1042,8 +1011,7 @@ tty3270_install(struct tty_driver *driver, struct tty_struct *tty) ...@@ -1042,8 +1011,7 @@ tty3270_install(struct tty_driver *driver, struct tty_struct *tty)
/* /*
* This routine is called whenever a 3270 tty is opened. * This routine is called whenever a 3270 tty is opened.
*/ */
static int static int tty3270_open(struct tty_struct *tty, struct file *filp)
tty3270_open(struct tty_struct *tty, struct file *filp)
{ {
struct tty3270 *tp = tty->driver_data; struct tty3270 *tp = tty->driver_data;
struct tty_port *port = &tp->port; struct tty_port *port = &tp->port;
...@@ -1057,8 +1025,7 @@ tty3270_open(struct tty_struct *tty, struct file *filp) ...@@ -1057,8 +1025,7 @@ tty3270_open(struct tty_struct *tty, struct file *filp)
* This routine is called when the 3270 tty is closed. We wait * This routine is called when the 3270 tty is closed. We wait
* for the remaining request to be completed. Then we clean up. * for the remaining request to be completed. Then we clean up.
*/ */
static void static void tty3270_close(struct tty_struct *tty, struct file *filp)
tty3270_close(struct tty_struct *tty, struct file * filp)
{ {
struct tty3270 *tp = tty->driver_data; struct tty3270 *tp = tty->driver_data;
...@@ -1081,8 +1048,7 @@ static void tty3270_cleanup(struct tty_struct *tty) ...@@ -1081,8 +1048,7 @@ static void tty3270_cleanup(struct tty_struct *tty)
/* /*
* We always have room. * We always have room.
*/ */
static unsigned int static unsigned int tty3270_write_room(struct tty_struct *tty)
tty3270_write_room(struct tty_struct *tty)
{ {
return INT_MAX; return INT_MAX;
} }
...@@ -1116,8 +1082,7 @@ static void tty3270_put_character(struct tty3270 *tp, char ch) ...@@ -1116,8 +1082,7 @@ static void tty3270_put_character(struct tty3270 *tp, char ch)
/* /*
* Convert a tty3270_line to a 3270 data fragment usable for output. * Convert a tty3270_line to a 3270 data fragment usable for output.
*/ */
static void static void tty3270_convert_line(struct tty3270 *tp, int line_nr)
tty3270_convert_line(struct tty3270 *tp, int line_nr)
{ {
struct tty3270_line *line; struct tty3270_line *line;
struct tty3270_cell *cell; struct tty3270_cell *cell;
...@@ -1223,8 +1188,7 @@ tty3270_convert_line(struct tty3270 *tp, int line_nr) ...@@ -1223,8 +1188,7 @@ tty3270_convert_line(struct tty3270 *tp, int line_nr)
/* /*
* Do carriage return. * Do carriage return.
*/ */
static void static void tty3270_cr(struct tty3270 *tp)
tty3270_cr(struct tty3270 *tp)
{ {
tp->cx = 0; tp->cx = 0;
} }
...@@ -1232,8 +1196,7 @@ tty3270_cr(struct tty3270 *tp) ...@@ -1232,8 +1196,7 @@ tty3270_cr(struct tty3270 *tp)
/* /*
* Do line feed. * Do line feed.
*/ */
static void static void tty3270_lf(struct tty3270 *tp)
tty3270_lf(struct tty3270 *tp)
{ {
struct tty3270_line temp; struct tty3270_line temp;
int i; int i;
...@@ -1253,8 +1216,7 @@ tty3270_lf(struct tty3270 *tp) ...@@ -1253,8 +1216,7 @@ tty3270_lf(struct tty3270 *tp)
tty3270_rebuild_update(tp); tty3270_rebuild_update(tp);
} }
static void static void tty3270_ri(struct tty3270 *tp)
tty3270_ri(struct tty3270 *tp)
{ {
if (tp->cy > 0) { if (tp->cy > 0) {
tty3270_convert_line(tp, tp->cy); tty3270_convert_line(tp, tp->cy);
...@@ -1265,8 +1227,7 @@ tty3270_ri(struct tty3270 *tp) ...@@ -1265,8 +1227,7 @@ tty3270_ri(struct tty3270 *tp)
/* /*
* Insert characters at current position. * Insert characters at current position.
*/ */
static void static void tty3270_insert_characters(struct tty3270 *tp, int n)
tty3270_insert_characters(struct tty3270 *tp, int n)
{ {
struct tty3270_line *line; struct tty3270_line *line;
int k; int k;
...@@ -1296,8 +1257,7 @@ tty3270_insert_characters(struct tty3270 *tp, int n) ...@@ -1296,8 +1257,7 @@ tty3270_insert_characters(struct tty3270 *tp, int n)
/* /*
* Delete characters at current position. * Delete characters at current position.
*/ */
static void static void tty3270_delete_characters(struct tty3270 *tp, int n)
tty3270_delete_characters(struct tty3270 *tp, int n)
{ {
struct tty3270_line *line; struct tty3270_line *line;
int i; int i;
...@@ -1317,8 +1277,7 @@ tty3270_delete_characters(struct tty3270 *tp, int n) ...@@ -1317,8 +1277,7 @@ tty3270_delete_characters(struct tty3270 *tp, int n)
/* /*
* Erase characters at current position. * Erase characters at current position.
*/ */
static void static void tty3270_erase_characters(struct tty3270 *tp, int n)
tty3270_erase_characters(struct tty3270 *tp, int n)
{ {
struct tty3270_line *line; struct tty3270_line *line;
struct tty3270_cell *cell; struct tty3270_cell *cell;
...@@ -1340,8 +1299,7 @@ tty3270_erase_characters(struct tty3270 *tp, int n) ...@@ -1340,8 +1299,7 @@ tty3270_erase_characters(struct tty3270 *tp, int n)
* Esc [ 1 K Erase from beginning of line to current position inclusive * Esc [ 1 K Erase from beginning of line to current position inclusive
* Esc [ 2 K Erase entire line (without moving cursor) * Esc [ 2 K Erase entire line (without moving cursor)
*/ */
static void static void tty3270_erase_line(struct tty3270 *tp, int mode)
tty3270_erase_line(struct tty3270 *tp, int mode)
{ {
struct tty3270_line *line; struct tty3270_line *line;
struct tty3270_cell *cell; struct tty3270_cell *cell;
...@@ -1370,8 +1328,7 @@ tty3270_erase_line(struct tty3270 *tp, int mode) ...@@ -1370,8 +1328,7 @@ tty3270_erase_line(struct tty3270 *tp, int mode)
* Esc [ 1 J Erase from top of screen to current position inclusive * Esc [ 1 J Erase from top of screen to current position inclusive
* Esc [ 2 J Erase entire screen (without moving the cursor) * Esc [ 2 J Erase entire screen (without moving the cursor)
*/ */
static void static void tty3270_erase_display(struct tty3270 *tp, int mode)
tty3270_erase_display(struct tty3270 *tp, int mode)
{ {
int i; int i;
...@@ -1400,8 +1357,7 @@ tty3270_erase_display(struct tty3270 *tp, int mode) ...@@ -1400,8 +1357,7 @@ tty3270_erase_display(struct tty3270 *tp, int mode)
* Set attributes found in an escape sequence. * Set attributes found in an escape sequence.
* Esc [ <attr> ; <attr> ; ... m * Esc [ <attr> ; <attr> ; ... m
*/ */
static void static void tty3270_set_attributes(struct tty3270 *tp)
tty3270_set_attributes(struct tty3270 *tp)
{ {
static unsigned char f_colors[] = { static unsigned char f_colors[] = {
TAC_DEFAULT, TAC_RED, TAC_GREEN, TAC_YELLOW, TAC_BLUE, TAC_DEFAULT, TAC_RED, TAC_GREEN, TAC_YELLOW, TAC_BLUE,
...@@ -1454,14 +1410,12 @@ tty3270_set_attributes(struct tty3270 *tp) ...@@ -1454,14 +1410,12 @@ tty3270_set_attributes(struct tty3270 *tp)
} }
} }
static inline int static inline int tty3270_getpar(struct tty3270 *tp, int ix)
tty3270_getpar(struct tty3270 *tp, int ix)
{ {
return (tp->esc_par[ix] > 0) ? tp->esc_par[ix] : 1; return (tp->esc_par[ix] > 0) ? tp->esc_par[ix] : 1;
} }
static void static void tty3270_goto_xy(struct tty3270 *tp, int cx, int cy)
tty3270_goto_xy(struct tty3270 *tp, int cx, int cy)
{ {
int max_cx = max(0, cx); int max_cx = max(0, cx);
int max_cy = max(0, cy); int max_cy = max(0, cy);
...@@ -1494,8 +1448,7 @@ tty3270_goto_xy(struct tty3270 *tp, int cx, int cy) ...@@ -1494,8 +1448,7 @@ tty3270_goto_xy(struct tty3270 *tp, int cx, int cy)
* Pn is a numeric parameter, a string of zero or more decimal digits. * Pn is a numeric parameter, a string of zero or more decimal digits.
* Ps is a selective parameter. * Ps is a selective parameter.
*/ */
static void static void tty3270_escape_sequence(struct tty3270 *tp, char ch)
tty3270_escape_sequence(struct tty3270 *tp, char ch)
{ {
enum { ESnormal, ESesc, ESsquare, ESgetpars }; enum { ESnormal, ESesc, ESsquare, ESgetpars };
...@@ -1643,9 +1596,8 @@ tty3270_escape_sequence(struct tty3270 *tp, char ch) ...@@ -1643,9 +1596,8 @@ tty3270_escape_sequence(struct tty3270 *tp, char ch)
/* /*
* String write routine for 3270 ttys * String write routine for 3270 ttys
*/ */
static void static void tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty,
tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty, const unsigned char *buf, int count)
const unsigned char *buf, int count)
{ {
int i_msg, i; int i_msg, i;
...@@ -1717,9 +1669,8 @@ tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty, ...@@ -1717,9 +1669,8 @@ tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty,
/* /*
* String write routine for 3270 ttys * String write routine for 3270 ttys
*/ */
static int static int tty3270_write(struct tty_struct *tty,
tty3270_write(struct tty_struct * tty, const unsigned char *buf, int count)
const unsigned char *buf, int count)
{ {
struct tty3270 *tp; struct tty3270 *tp;
...@@ -1752,8 +1703,7 @@ static int tty3270_put_char(struct tty_struct *tty, unsigned char ch) ...@@ -1752,8 +1703,7 @@ static int tty3270_put_char(struct tty_struct *tty, unsigned char ch)
* Flush all characters from the ttys characeter buffer put there * Flush all characters from the ttys characeter buffer put there
* by tty3270_put_char. * by tty3270_put_char.
*/ */
static void static void tty3270_flush_chars(struct tty_struct *tty)
tty3270_flush_chars(struct tty_struct *tty)
{ {
struct tty3270 *tp; struct tty3270 *tp;
...@@ -1769,8 +1719,7 @@ tty3270_flush_chars(struct tty_struct *tty) ...@@ -1769,8 +1719,7 @@ tty3270_flush_chars(struct tty_struct *tty)
/* /*
* Check for visible/invisible input switches * Check for visible/invisible input switches
*/ */
static void static void tty3270_set_termios(struct tty_struct *tty, const struct ktermios *old)
tty3270_set_termios(struct tty_struct *tty, const struct ktermios *old)
{ {
struct tty3270 *tp; struct tty3270 *tp;
int new; int new;
...@@ -1793,8 +1742,7 @@ tty3270_set_termios(struct tty_struct *tty, const struct ktermios *old) ...@@ -1793,8 +1742,7 @@ tty3270_set_termios(struct tty_struct *tty, const struct ktermios *old)
/* /*
* Disable reading from a 3270 tty * Disable reading from a 3270 tty
*/ */
static void static void tty3270_throttle(struct tty_struct *tty)
tty3270_throttle(struct tty_struct * tty)
{ {
struct tty3270 *tp; struct tty3270 *tp;
...@@ -1807,8 +1755,7 @@ tty3270_throttle(struct tty_struct * tty) ...@@ -1807,8 +1755,7 @@ tty3270_throttle(struct tty_struct * tty)
/* /*
* Enable reading from a 3270 tty * Enable reading from a 3270 tty
*/ */
static void static void tty3270_unthrottle(struct tty_struct *tty)
tty3270_unthrottle(struct tty_struct * tty)
{ {
struct tty3270 *tp; struct tty3270 *tp;
...@@ -1823,8 +1770,7 @@ tty3270_unthrottle(struct tty_struct * tty) ...@@ -1823,8 +1770,7 @@ tty3270_unthrottle(struct tty_struct * tty)
/* /*
* Hang up the tty device. * Hang up the tty device.
*/ */
static void static void tty3270_hangup(struct tty_struct *tty)
tty3270_hangup(struct tty_struct *tty)
{ {
struct tty3270 *tp; struct tty3270 *tp;
...@@ -1844,8 +1790,7 @@ tty3270_hangup(struct tty_struct *tty) ...@@ -1844,8 +1790,7 @@ tty3270_hangup(struct tty_struct *tty)
tty3270_set_timer(tp, 1); tty3270_set_timer(tp, 1);
} }
static void static void tty3270_wait_until_sent(struct tty_struct *tty, int timeout)
tty3270_wait_until_sent(struct tty_struct *tty, int timeout)
{ {
} }
...@@ -1953,8 +1898,7 @@ static int __init tty3270_init(void) ...@@ -1953,8 +1898,7 @@ static int __init tty3270_init(void)
return 0; return 0;
} }
static void __exit static void __exit tty3270_exit(void)
tty3270_exit(void)
{ {
struct tty_driver *driver; struct tty_driver *driver;
......
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