Commit 1eba3dba authored by Konrad Zapalowicz's avatar Konrad Zapalowicz Committed by Greg Kroah-Hartman

staging: dgnc: Fix missing blank line after declarations

This commit deals with the checkapth warnings 'missing line after
declarations' in the dgnc_neo.c file.
Signed-off-by: default avatarKonrad Zapalowicz <bergo.torino@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9dfe5670
...@@ -397,6 +397,7 @@ static inline void neo_clear_break(struct channel_t *ch, int force) ...@@ -397,6 +397,7 @@ static inline void neo_clear_break(struct channel_t *ch, int force)
if (time_after_eq(jiffies, ch->ch_stop_sending_break) if (time_after_eq(jiffies, ch->ch_stop_sending_break)
|| force) { || force) {
uchar temp = readb(&ch->ch_neo_uart->lcr); uchar temp = readb(&ch->ch_neo_uart->lcr);
writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr); writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr);
neo_pci_posting_flush(ch->ch_bd); neo_pci_posting_flush(ch->ch_bd);
ch->ch_flags &= ~(CH_BREAK_SENDING); ch->ch_flags &= ~(CH_BREAK_SENDING);
...@@ -1138,6 +1139,7 @@ static irqreturn_t neo_intr(int irq, void *voidbrd) ...@@ -1138,6 +1139,7 @@ static irqreturn_t neo_intr(int irq, void *voidbrd)
static void neo_disable_receiver(struct channel_t *ch) static void neo_disable_receiver(struct channel_t *ch)
{ {
uchar tmp = readb(&ch->ch_neo_uart->ier); uchar tmp = readb(&ch->ch_neo_uart->ier);
tmp &= ~(UART_IER_RDI); tmp &= ~(UART_IER_RDI);
writeb(tmp, &ch->ch_neo_uart->ier); writeb(tmp, &ch->ch_neo_uart->ier);
neo_pci_posting_flush(ch->ch_bd); neo_pci_posting_flush(ch->ch_bd);
...@@ -1152,6 +1154,7 @@ static void neo_disable_receiver(struct channel_t *ch) ...@@ -1152,6 +1154,7 @@ static void neo_disable_receiver(struct channel_t *ch)
static void neo_enable_receiver(struct channel_t *ch) static void neo_enable_receiver(struct channel_t *ch)
{ {
uchar tmp = readb(&ch->ch_neo_uart->ier); uchar tmp = readb(&ch->ch_neo_uart->ier);
tmp |= (UART_IER_RDI); tmp |= (UART_IER_RDI);
writeb(tmp, &ch->ch_neo_uart->ier); writeb(tmp, &ch->ch_neo_uart->ier);
neo_pci_posting_flush(ch->ch_bd); neo_pci_posting_flush(ch->ch_bd);
...@@ -1324,6 +1327,7 @@ static void neo_copy_data_from_uart_to_queue(struct channel_t *ch) ...@@ -1324,6 +1327,7 @@ static void neo_copy_data_from_uart_to_queue(struct channel_t *ch)
*/ */
if (linestatus & error_mask) { if (linestatus & error_mask) {
uchar discard; uchar discard;
linestatus = 0; linestatus = 0;
memcpy_fromio(&discard, &ch->ch_neo_uart->txrxburst, 1); memcpy_fromio(&discard, &ch->ch_neo_uart->txrxburst, 1);
continue; continue;
...@@ -1822,6 +1826,7 @@ static void neo_send_break(struct channel_t *ch, int msecs) ...@@ -1822,6 +1826,7 @@ static void neo_send_break(struct channel_t *ch, int msecs)
if (msecs == 0) { if (msecs == 0) {
if (ch->ch_flags & CH_BREAK_SENDING) { if (ch->ch_flags & CH_BREAK_SENDING) {
uchar temp = readb(&ch->ch_neo_uart->lcr); uchar temp = readb(&ch->ch_neo_uart->lcr);
writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr); writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr);
neo_pci_posting_flush(ch->ch_bd); neo_pci_posting_flush(ch->ch_bd);
ch->ch_flags &= ~(CH_BREAK_SENDING); ch->ch_flags &= ~(CH_BREAK_SENDING);
...@@ -1841,6 +1846,7 @@ static void neo_send_break(struct channel_t *ch, int msecs) ...@@ -1841,6 +1846,7 @@ static void neo_send_break(struct channel_t *ch, int msecs)
/* Tell the UART to start sending the break */ /* Tell the UART to start sending the break */
if (!(ch->ch_flags & CH_BREAK_SENDING)) { if (!(ch->ch_flags & CH_BREAK_SENDING)) {
uchar temp = readb(&ch->ch_neo_uart->lcr); uchar temp = readb(&ch->ch_neo_uart->lcr);
writeb((temp | UART_LCR_SBC), &ch->ch_neo_uart->lcr); writeb((temp | UART_LCR_SBC), &ch->ch_neo_uart->lcr);
neo_pci_posting_flush(ch->ch_bd); neo_pci_posting_flush(ch->ch_bd);
ch->ch_flags |= (CH_BREAK_SENDING); ch->ch_flags |= (CH_BREAK_SENDING);
......
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