[PATCH 19/33] staging: comedi: adv_pci_dio: use a default case in pci_dio_reset()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For aesthetics, use a default case in the switch (board->cardtype) used
to reset the various boards.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Cc: Ian Abbott <abbotti@xxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/staging/comedi/drivers/adv_pci_dio.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/comedi/drivers/adv_pci_dio.c b/drivers/staging/comedi/drivers/adv_pci_dio.c
index c564b69..231fa73 100644
--- a/drivers/staging/comedi/drivers/adv_pci_dio.c
+++ b/drivers/staging/comedi/drivers/adv_pci_dio.c
@@ -313,11 +313,6 @@ static int pci_dio_reset(struct comedi_device *dev)
 		/* set rising edge trigger */
 		outb(0, dev->iobase + PCI1730_3_INT_RF);
 		break;
-	case TYPE_PCI1734:
-		break;
-	case TYPE_PCI1735:
-		break;
-
 	case TYPE_PCI1736:
 		/* disable interrupts */
 		outb(0, dev->iobase + PCI1736_3_INT_EN);
@@ -326,12 +321,10 @@ static int pci_dio_reset(struct comedi_device *dev)
 		/* set rising edge trigger */
 		outb(0, dev->iobase + PCI1736_3_INT_RF);
 		break;
-
 	case TYPE_PCI1739:
 		/* disable & clear interrupts */
 		outb(0x88, dev->iobase + PCI1739_ICR);
 		break;
-
 	case TYPE_PCI1750:
 	case TYPE_PCI1751:
 		/* disable & clear interrupts */
@@ -373,6 +366,8 @@ static int pci_dio_reset(struct comedi_device *dev)
 		outw(0x0101, dev->iobase + PCI1762_ICR); /* disable & clear
 							  * interrupts */
 		break;
+	default:
+		break;
 	}
 
 	return 0;
-- 
2.5.1

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux