Skip to content

Commit

Permalink
serial: jsm: Replace magic value with the proper define
Browse files Browse the repository at this point in the history
The changed function flushes the tx UART and the '4' corresponds to the
UART_FCR_CLEAR_XMIT value. This commit replaces the magic number with
this define.

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 245ae51 commit 5b05e2c
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -644,7 +644,7 @@ static void neo_flush_uart_write(struct jsm_channel *ch)

/* Check to see if the UART feels it completely flushed the FIFO. */
tmp = readb(&ch->ch_neo_uart->isr_fcr);
if (tmp & 4) {
if (tmp & UART_FCR_CLEAR_XMIT) {
jsm_dbg(IOCTL, &ch->ch_bd->pci_dev,
"Still flushing TX UART... i: %d\n", i);
udelay(10);
Expand Down

0 comments on commit 5b05e2c

Please sign in to comment.