Commit cc9b418f authored by Russell King's avatar Russell King

[SERIAL] Change settermios to set_termios

set_termios matches the style used for the other methods.  It should
have been this from the start.
parent 581b7bba
...@@ -176,7 +176,7 @@ hardware. ...@@ -176,7 +176,7 @@ hardware.
Locking: port_sem taken. Locking: port_sem taken.
Interrupts: caller dependent. Interrupts: caller dependent.
settermios(port,termios,oldtermios) set_termios(port,termios,oldtermios)
Change the port parameters, including word length, parity, stop Change the port parameters, including word length, parity, stop
bits. Update read_status_mask and ignore_status_mask to indicate bits. Update read_status_mask and ignore_status_mask to indicate
the types of events we are interested in receiving. Relevant the types of events we are interested in receiving. Relevant
......
...@@ -233,7 +233,7 @@ static void serial21285_shutdown(struct uart_port *port) ...@@ -233,7 +233,7 @@ static void serial21285_shutdown(struct uart_port *port)
} }
static void static void
serial21285_settermios(struct uart_port *port, struct termios *termios, serial21285_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
unsigned long flags; unsigned long flags;
...@@ -369,7 +369,7 @@ static struct uart_ops serial21285_ops = { ...@@ -369,7 +369,7 @@ static struct uart_ops serial21285_ops = {
.break_ctl = serial21285_break_ctl, .break_ctl = serial21285_break_ctl,
.startup = serial21285_startup, .startup = serial21285_startup,
.shutdown = serial21285_shutdown, .shutdown = serial21285_shutdown,
.settermios = serial21285_settermios, .set_termios = serial21285_set_termios,
.type = serial21285_type, .type = serial21285_type,
.release_port = serial21285_release_port, .release_port = serial21285_release_port,
.request_port = serial21285_request_port, .request_port = serial21285_request_port,
......
...@@ -1174,7 +1174,7 @@ static int serial8250_startup(struct uart_port *port) ...@@ -1174,7 +1174,7 @@ static int serial8250_startup(struct uart_port *port)
/* /*
* Clear the FIFO buffers and disable them. * Clear the FIFO buffers and disable them.
* (they will be reeanbled in settermios()) * (they will be reeanbled in set_termios())
*/ */
if (uart_config[up->port.type].flags & UART_CLEAR_FIFO) { if (uart_config[up->port.type].flags & UART_CLEAR_FIFO) {
serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO); serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO);
...@@ -1241,7 +1241,7 @@ static int serial8250_startup(struct uart_port *port) ...@@ -1241,7 +1241,7 @@ static int serial8250_startup(struct uart_port *port)
/* /*
* Finally, enable interrupts. Note: Modem status interrupts * Finally, enable interrupts. Note: Modem status interrupts
* are set via settermios(), which will be occuring imminently * are set via set_termios(), which will be occuring imminently
* anyway, so we don't enable them here. * anyway, so we don't enable them here.
*/ */
up->ier = UART_IER_RLSI | UART_IER_RDI; up->ier = UART_IER_RLSI | UART_IER_RDI;
...@@ -1319,7 +1319,7 @@ static void serial8250_shutdown(struct uart_port *port) ...@@ -1319,7 +1319,7 @@ static void serial8250_shutdown(struct uart_port *port)
} }
static void static void
serial8250_settermios(struct uart_port *port, struct termios *termios, serial8250_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
struct uart_8250_port *up = (struct uart_8250_port *)port; struct uart_8250_port *up = (struct uart_8250_port *)port;
...@@ -1740,7 +1740,7 @@ static struct uart_ops serial8250_pops = { ...@@ -1740,7 +1740,7 @@ static struct uart_ops serial8250_pops = {
.break_ctl = serial8250_break_ctl, .break_ctl = serial8250_break_ctl,
.startup = serial8250_startup, .startup = serial8250_startup,
.shutdown = serial8250_shutdown, .shutdown = serial8250_shutdown,
.settermios = serial8250_settermios, .set_termios = serial8250_set_termios,
.pm = serial8250_pm, .pm = serial8250_pm,
.type = serial8250_type, .type = serial8250_type,
.release_port = serial8250_release_port, .release_port = serial8250_release_port,
......
...@@ -403,7 +403,7 @@ static void ambauart_shutdown(struct uart_port *port) ...@@ -403,7 +403,7 @@ static void ambauart_shutdown(struct uart_port *port)
} }
static void static void
ambauart_settermios(struct uart_port *port, struct termios *termios, ambauart_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
unsigned int lcr_h, old_cr; unsigned int lcr_h, old_cr;
...@@ -557,7 +557,7 @@ static struct uart_ops amba_pops = { ...@@ -557,7 +557,7 @@ static struct uart_ops amba_pops = {
.break_ctl = ambauart_break_ctl, .break_ctl = ambauart_break_ctl,
.startup = ambauart_startup, .startup = ambauart_startup,
.shutdown = ambauart_shutdown, .shutdown = ambauart_shutdown,
.settermios = ambauart_settermios, .set_termios = ambauart_set_termios,
.type = ambauart_type, .type = ambauart_type,
.release_port = ambauart_release_port, .release_port = ambauart_release_port,
.request_port = ambauart_request_port, .request_port = ambauart_request_port,
......
...@@ -283,7 +283,7 @@ static void anakin_shutdown(struct uart_port *port) ...@@ -283,7 +283,7 @@ static void anakin_shutdown(struct uart_port *port)
} }
static void static void
anakin_settermios(struct uart_port *port, struct termios *termios, anakin_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
unsigned long flags; unsigned long flags;
...@@ -337,7 +337,7 @@ static struct uart_ops anakin_pops = { ...@@ -337,7 +337,7 @@ static struct uart_ops anakin_pops = {
.break_ctl = anakin_break_ctl, .break_ctl = anakin_break_ctl,
.startup = anakin_startup, .startup = anakin_startup,
.shutdown = anakin_shutdown, .shutdown = anakin_shutdown,
.settermios = anakin_settermios, .set_termios = anakin_set_termios,
.type = anakin_type, .type = anakin_type,
}; };
......
...@@ -317,7 +317,7 @@ static void clps711xuart_shutdown(struct uart_port *port) ...@@ -317,7 +317,7 @@ static void clps711xuart_shutdown(struct uart_port *port)
} }
static void static void
clps711xuart_settermios(struct uart_port *port, struct termios *termios, clps711xuart_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
unsigned int ubrlcr, quot; unsigned int ubrlcr, quot;
...@@ -424,7 +424,7 @@ static struct uart_ops clps711x_pops = { ...@@ -424,7 +424,7 @@ static struct uart_ops clps711x_pops = {
.break_ctl = clps711xuart_break_ctl, .break_ctl = clps711xuart_break_ctl,
.startup = clps711xuart_startup, .startup = clps711xuart_startup,
.shutdown = clps711xuart_shutdown, .shutdown = clps711xuart_shutdown,
.settermios = clps711xuart_settermios, .set_termios = clps711xuart_set_termios,
.type = clps711xuart_type, .type = clps711xuart_type,
.config_port = clps711xuart_config_port, .config_port = clps711xuart_config_port,
.release_port = clps711xuart_release_port, .release_port = clps711xuart_release_port,
......
...@@ -451,7 +451,7 @@ uart_change_speed(struct uart_info *info, struct termios *old_termios) ...@@ -451,7 +451,7 @@ uart_change_speed(struct uart_info *info, struct termios *old_termios)
else else
info->flags |= UIF_CHECK_CD; info->flags |= UIF_CHECK_CD;
port->ops->settermios(port, termios, old_termios); port->ops->set_termios(port, termios, old_termios);
} }
static inline void static inline void
...@@ -1887,7 +1887,7 @@ uart_set_options(struct uart_port *port, struct console *co, ...@@ -1887,7 +1887,7 @@ uart_set_options(struct uart_port *port, struct console *co,
if (flow == 'r') if (flow == 'r')
termios.c_cflag |= CRTSCTS; termios.c_cflag |= CRTSCTS;
port->ops->settermios(port, &termios, NULL); port->ops->set_termios(port, &termios, NULL);
co->cflag = termios.c_cflag; co->cflag = termios.c_cflag;
return 0; return 0;
......
...@@ -268,7 +268,7 @@ static void mux_shutdown(struct uart_port *port) ...@@ -268,7 +268,7 @@ static void mux_shutdown(struct uart_port *port)
} }
/** /**
* mux_settermios - Chane port parameters. * mux_set_termios - Chane port parameters.
* @port: Ptr to the uart_port. * @port: Ptr to the uart_port.
* @termios: new termios settings. * @termios: new termios settings.
* @old: old termios settings. * @old: old termios settings.
...@@ -276,7 +276,7 @@ static void mux_shutdown(struct uart_port *port) ...@@ -276,7 +276,7 @@ static void mux_shutdown(struct uart_port *port)
* The Serial Mux does not support this function. * The Serial Mux does not support this function.
*/ */
static void static void
mux_settermios(struct uart_port *port, struct termios *termios, mux_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
} }
...@@ -387,7 +387,7 @@ static struct uart_ops mux_pops = { ...@@ -387,7 +387,7 @@ static struct uart_ops mux_pops = {
.break_ctl = mux_break_ctl, .break_ctl = mux_break_ctl,
.startup = mux_startup, .startup = mux_startup,
.shutdown = mux_shutdown, .shutdown = mux_shutdown,
.settermios = mux_settermios, .set_termios = mux_set_termios,
.type = mux_type, .type = mux_type,
.release_port = mux_release_port, .release_port = mux_release_port,
.request_port = mux_request_port, .request_port = mux_request_port,
......
...@@ -440,7 +440,7 @@ static void nb85e_uart_shutdown (struct uart_port *port) ...@@ -440,7 +440,7 @@ static void nb85e_uart_shutdown (struct uart_port *port)
} }
static void static void
nb85e_uart_settermios (struct uart_port *port, struct termios *termios, nb85e_uart_set_termios (struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
/* FIXME: Which termios flags does this driver support? --rmk */ /* FIXME: Which termios flags does this driver support? --rmk */
...@@ -481,7 +481,7 @@ static struct uart_ops nb85e_uart_ops = { ...@@ -481,7 +481,7 @@ static struct uart_ops nb85e_uart_ops = {
.break_ctl = nb85e_uart_break_ctl, .break_ctl = nb85e_uart_break_ctl,
.startup = nb85e_uart_startup, .startup = nb85e_uart_startup,
.shutdown = nb85e_uart_shutdown, .shutdown = nb85e_uart_shutdown,
.settermios = nb85e_uart_settermios, .set_termios = nb85e_uart_set_termios,
.type = nb85e_uart_type, .type = nb85e_uart_type,
.release_port = nb85e_uart_nop, .release_port = nb85e_uart_nop,
.request_port = nb85e_uart_success, .request_port = nb85e_uart_success,
......
...@@ -436,7 +436,7 @@ static void sa1100_shutdown(struct uart_port *port) ...@@ -436,7 +436,7 @@ static void sa1100_shutdown(struct uart_port *port)
} }
static void static void
sa1100_settermios(struct uart_port *port, struct termios *termios, sa1100_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
struct sa1100_port *sport = (struct sa1100_port *)port; struct sa1100_port *sport = (struct sa1100_port *)port;
...@@ -618,7 +618,7 @@ static struct uart_ops sa1100_pops = { ...@@ -618,7 +618,7 @@ static struct uart_ops sa1100_pops = {
.break_ctl = sa1100_break_ctl, .break_ctl = sa1100_break_ctl,
.startup = sa1100_startup, .startup = sa1100_startup,
.shutdown = sa1100_shutdown, .shutdown = sa1100_shutdown,
.settermios = sa1100_settermios, .set_termios = sa1100_set_termios,
.type = sa1100_type, .type = sa1100_type,
.release_port = sa1100_release_port, .release_port = sa1100_release_port,
.request_port = sa1100_request_port, .request_port = sa1100_request_port,
......
...@@ -777,7 +777,7 @@ static void sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cfla ...@@ -777,7 +777,7 @@ static void sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cfla
} }
/* port->lock is not held. */ /* port->lock is not held. */
static void sunsab_settermios(struct uart_port *port, struct termios *termios, static void sunsab_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
struct uart_sunsab_port *up = (struct uart_sunsab_port *) port; struct uart_sunsab_port *up = (struct uart_sunsab_port *) port;
...@@ -824,7 +824,7 @@ static struct uart_ops sunsab_pops = { ...@@ -824,7 +824,7 @@ static struct uart_ops sunsab_pops = {
.break_ctl = sunsab_break_ctl, .break_ctl = sunsab_break_ctl,
.startup = sunsab_startup, .startup = sunsab_startup,
.shutdown = sunsab_shutdown, .shutdown = sunsab_shutdown,
.settermios = sunsab_settermios, .set_termios = sunsab_set_termios,
.type = sunsab_type, .type = sunsab_type,
.release_port = sunsab_release_port, .release_port = sunsab_release_port,
.request_port = sunsab_request_port, .request_port = sunsab_request_port,
......
...@@ -660,7 +660,7 @@ static int sunsu_startup(struct uart_port *port) ...@@ -660,7 +660,7 @@ static int sunsu_startup(struct uart_port *port)
/* /*
* Clear the FIFO buffers and disable them. * Clear the FIFO buffers and disable them.
* (they will be reeanbled in settermios()) * (they will be reeanbled in set_termios())
*/ */
if (uart_config[up->port.type].flags & UART_CLEAR_FIFO) { if (uart_config[up->port.type].flags & UART_CLEAR_FIFO) {
serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO); serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO);
...@@ -714,7 +714,7 @@ static int sunsu_startup(struct uart_port *port) ...@@ -714,7 +714,7 @@ static int sunsu_startup(struct uart_port *port)
/* /*
* Finally, enable interrupts. Note: Modem status interrupts * Finally, enable interrupts. Note: Modem status interrupts
* are set via settermios(), which will be occuring imminently * are set via set_termios(), which will be occuring imminently
* anyway, so we don't enable them here. * anyway, so we don't enable them here.
*/ */
up->ier = UART_IER_RLSI | UART_IER_RDI; up->ier = UART_IER_RLSI | UART_IER_RDI;
...@@ -917,7 +917,7 @@ sunsu_change_speed(struct uart_port *port, unsigned int cflag, ...@@ -917,7 +917,7 @@ sunsu_change_speed(struct uart_port *port, unsigned int cflag,
} }
static void static void
sunsu_settermios(struct uart_port *port, struct termios *termios, sunsu_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
unsigned int quot; unsigned int quot;
...@@ -980,7 +980,7 @@ static struct uart_ops sunsu_pops = { ...@@ -980,7 +980,7 @@ static struct uart_ops sunsu_pops = {
.break_ctl = sunsu_break_ctl, .break_ctl = sunsu_break_ctl,
.startup = sunsu_startup, .startup = sunsu_startup,
.shutdown = sunsu_shutdown, .shutdown = sunsu_shutdown,
.settermios = sunsu_settermios, .set_termios = sunsu_set_termios,
.type = sunsu_type, .type = sunsu_type,
.release_port = sunsu_release_port, .release_port = sunsu_release_port,
.request_port = sunsu_request_port, .request_port = sunsu_request_port,
......
...@@ -917,7 +917,7 @@ sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag, ...@@ -917,7 +917,7 @@ sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag,
/* The port lock is not held. */ /* The port lock is not held. */
static void static void
sunzilog_settermios(struct uart_port *port, struct termios *termios, sunzilog_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
struct uart_sunzilog_port *up = (struct uart_sunzilog_port *) port; struct uart_sunzilog_port *up = (struct uart_sunzilog_port *) port;
...@@ -983,7 +983,7 @@ static struct uart_ops sunzilog_pops = { ...@@ -983,7 +983,7 @@ static struct uart_ops sunzilog_pops = {
.break_ctl = sunzilog_break_ctl, .break_ctl = sunzilog_break_ctl,
.startup = sunzilog_startup, .startup = sunzilog_startup,
.shutdown = sunzilog_shutdown, .shutdown = sunzilog_shutdown,
.settermios = sunzilog_settermios, .set_termios = sunzilog_set_termios,
.type = sunzilog_type, .type = sunzilog_type,
.release_port = sunzilog_release_port, .release_port = sunzilog_release_port,
.request_port = sunzilog_request_port, .request_port = sunzilog_request_port,
......
...@@ -314,7 +314,7 @@ static void uart00_break_ctl(struct uart_port *port, int break_state) ...@@ -314,7 +314,7 @@ static void uart00_break_ctl(struct uart_port *port, int break_state)
} }
static void static void
uart00_settermios(struct uart_port *port, struct termios *termios, uart00_set_termios(struct uart_port *port, struct termios *termios,
struct termios *old) struct termios *old)
{ {
unsigned int uart_mc, old_ies, quot; unsigned int uart_mc, old_ies, quot;
...@@ -511,7 +511,7 @@ static struct uart_ops uart00_pops = { ...@@ -511,7 +511,7 @@ static struct uart_ops uart00_pops = {
.break_ctl = uart00_break_ctl, .break_ctl = uart00_break_ctl,
.startup = uart00_startup, .startup = uart00_startup,
.shutdown = uart00_shutdown, .shutdown = uart00_shutdown,
.settermios = uart00_settermios, .set_termios = uart00_set_termios,
.type = uart00_type, .type = uart00_type,
.release_port = uart00_release_port, .release_port = uart00_release_port,
.request_port = uart00_request_port, .request_port = uart00_request_port,
......
...@@ -86,7 +86,7 @@ struct uart_ops { ...@@ -86,7 +86,7 @@ struct uart_ops {
void (*break_ctl)(struct uart_port *, int ctl); void (*break_ctl)(struct uart_port *, int ctl);
int (*startup)(struct uart_port *); int (*startup)(struct uart_port *);
void (*shutdown)(struct uart_port *); void (*shutdown)(struct uart_port *);
void (*settermios)(struct uart_port *, struct termios *new, void (*set_termios)(struct uart_port *, struct termios *new,
struct termios *old); struct termios *old);
void (*pm)(struct uart_port *, unsigned int state, void (*pm)(struct uart_port *, unsigned int state,
unsigned int oldstate); unsigned int oldstate);
......
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