Skip to content

Commit

Permalink
serial: jsm: Remove unnecessary parameter from clear_break()
Browse files Browse the repository at this point in the history
The 'force' parameter to the {cls,neo}_send_break() function has been
removed because it has not been used. The client to this API (the tty
code) always called this function with only one value.

Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Konrad Zapalowicz authored and Greg Kroah-Hartman committed Nov 26, 2014
1 parent f53297f commit 333f4eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/tty/serial/jsm/jsm.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct board_ops {
void (*disable_receiver) (struct jsm_channel *ch);
void (*enable_receiver) (struct jsm_channel *ch);
void (*send_break) (struct jsm_channel *ch);
void (*clear_break) (struct jsm_channel *ch, int);
void (*clear_break) (struct jsm_channel *ch);
void (*send_start_character) (struct jsm_channel *ch);
void (*send_stop_character) (struct jsm_channel *ch);
void (*copy_data_from_queue_to_uart) (struct jsm_channel *ch);
Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/jsm/jsm_cls.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static void cls_set_no_input_flow_control(struct jsm_channel *ch)
* No locks are assumed to be held when calling this function.
* channel lock is held and released in this function.
*/
static void cls_clear_break(struct jsm_channel *ch, int force)
static void cls_clear_break(struct jsm_channel *ch)
{
unsigned long lock_flags;

Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/jsm/jsm_neo.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ static void neo_flush_uart_read(struct jsm_channel *ch)
/*
* No locks are assumed to be held when calling this function.
*/
static void neo_clear_break(struct jsm_channel *ch, int force)
static void neo_clear_break(struct jsm_channel *ch)
{
unsigned long lock_flags;

Expand Down
2 changes: 1 addition & 1 deletion drivers/tty/serial/jsm/jsm_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ static void jsm_tty_break(struct uart_port *port, int break_state)
if (break_state == -1)
channel->ch_bd->bd_ops->send_break(channel);
else
channel->ch_bd->bd_ops->clear_break(channel, 0);
channel->ch_bd->bd_ops->clear_break(channel);

spin_unlock_irqrestore(&port->lock, lock_flags);
}
Expand Down

0 comments on commit 333f4eb

Please sign in to comment.