aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorJustin P. Mattock <justinmattock@gmail.com>2011-11-28 23:31:00 -0500
committerJiri Kosina <jkosina@suse.cz>2011-12-02 08:57:31 -0500
commit42b2aa86c6670347a2a07e6d7af0e0ecc8fdbff9 (patch)
tree6f8fb2a1efb3e84bf281658befe06dc6a7fb026b /drivers/net/irda
parenta13b032776379fa6e2bfccf798969ca51e5fb052 (diff)
treewide: Fix typos in various parts of the kernel, and fix some comments.
The below patch fixes some typos in various parts of the kernel, as well as fixes some comments. Please let me know if I missed anything, and I will try to get it changed and resent. Signed-off-by: Justin P. Mattock <justinmattock@gmail.com> Acked-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/nsc-ircc.c2
-rw-r--r--drivers/net/irda/via-ircc.c4
-rw-r--r--drivers/net/irda/w83977af_ir.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/irda/nsc-ircc.c b/drivers/net/irda/nsc-ircc.c
index b56636da6cc3..2a4f2f153244 100644
--- a/drivers/net/irda/nsc-ircc.c
+++ b/drivers/net/irda/nsc-ircc.c
@@ -1664,7 +1664,7 @@ static int nsc_ircc_dma_xmit_complete(struct nsc_ircc_cb *self)
1664 switch_bank(iobase, BANK0); 1664 switch_bank(iobase, BANK0);
1665 outb(inb(iobase+MCR) & ~MCR_DMA_EN, iobase+MCR); 1665 outb(inb(iobase+MCR) & ~MCR_DMA_EN, iobase+MCR);
1666 1666
1667 /* Check for underrrun! */ 1667 /* Check for underrun! */
1668 if (inb(iobase+ASCR) & ASCR_TXUR) { 1668 if (inb(iobase+ASCR) & ASCR_TXUR) {
1669 self->netdev->stats.tx_errors++; 1669 self->netdev->stats.tx_errors++;
1670 self->netdev->stats.tx_fifo_errors++; 1670 self->netdev->stats.tx_fifo_errors++;
diff --git a/drivers/net/irda/via-ircc.c b/drivers/net/irda/via-ircc.c
index 6d6479049aa1..2d456dd164fb 100644
--- a/drivers/net/irda/via-ircc.c
+++ b/drivers/net/irda/via-ircc.c
@@ -942,14 +942,14 @@ static int via_ircc_dma_xmit_complete(struct via_ircc_cb *self)
942 iobase = self->io.fir_base; 942 iobase = self->io.fir_base;
943 /* Disable DMA */ 943 /* Disable DMA */
944// DisableDmaChannel(self->io.dma); 944// DisableDmaChannel(self->io.dma);
945 /* Check for underrrun! */ 945 /* Check for underrun! */
946 /* Clear bit, by writing 1 into it */ 946 /* Clear bit, by writing 1 into it */
947 Tx_status = GetTXStatus(iobase); 947 Tx_status = GetTXStatus(iobase);
948 if (Tx_status & 0x08) { 948 if (Tx_status & 0x08) {
949 self->netdev->stats.tx_errors++; 949 self->netdev->stats.tx_errors++;
950 self->netdev->stats.tx_fifo_errors++; 950 self->netdev->stats.tx_fifo_errors++;
951 hwreset(self); 951 hwreset(self);
952// how to clear underrrun ? 952 /* how to clear underrun? */
953 } else { 953 } else {
954 self->netdev->stats.tx_packets++; 954 self->netdev->stats.tx_packets++;
955 ResetChip(iobase, 3); 955 ResetChip(iobase, 3);
diff --git a/drivers/net/irda/w83977af_ir.c b/drivers/net/irda/w83977af_ir.c
index c4366601b067..7d43506c7032 100644
--- a/drivers/net/irda/w83977af_ir.c
+++ b/drivers/net/irda/w83977af_ir.c
@@ -677,7 +677,7 @@ static void w83977af_dma_xmit_complete(struct w83977af_ir *self)
677 switch_bank(iobase, SET0); 677 switch_bank(iobase, SET0);
678 outb(inb(iobase+HCR) & ~HCR_EN_DMA, iobase+HCR); 678 outb(inb(iobase+HCR) & ~HCR_EN_DMA, iobase+HCR);
679 679
680 /* Check for underrrun! */ 680 /* Check for underrun! */
681 if (inb(iobase+AUDR) & AUDR_UNDR) { 681 if (inb(iobase+AUDR) & AUDR_UNDR) {
682 IRDA_DEBUG(0, "%s(), Transmit underrun!\n", __func__ ); 682 IRDA_DEBUG(0, "%s(), Transmit underrun!\n", __func__ );
683 683