summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-07-27 02:04:28 +0000
committerMichael Krufky <devnull@localhost>2005-07-27 02:04:28 +0000
commit77f6f81388b60cd9de567077cb6e890ccec60f2e (patch)
tree1907a52b022d1b23f1fe677b47863e6125ae7a97 /linux
parentc4a728e6af8034a8d7314846f74279f08745afab (diff)
downloadmediapointer-dvb-s2-77f6f81388b60cd9de567077cb6e890ccec60f2e.tar.gz
mediapointer-dvb-s2-77f6f81388b60cd9de567077cb6e890ccec60f2e.tar.bz2
* cx88-mpeg.c:
- convert ugly if-else statement to switch-case. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/cx88/cx88-mpeg.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-mpeg.c b/linux/drivers/media/video/cx88/cx88-mpeg.c
index 1fedfd16b..35a16616b 100644
--- a/linux/drivers/media/video/cx88/cx88-mpeg.c
+++ b/linux/drivers/media/video/cx88/cx88-mpeg.c
@@ -1,5 +1,5 @@
/*
- * $Id: cx88-mpeg.c,v 1.33 2005/07/27 01:45:19 mkrufky Exp $
+ * $Id: cx88-mpeg.c,v 1.34 2005/07/27 02:04:28 mkrufky Exp $
*
* Support for the mpeg transport stream transfers
* PCI function #2 of the cx2388x.
@@ -75,12 +75,15 @@ static int cx8802_start_dma(struct cx8802_dev *dev,
udelay(100);
cx_write(MO_PINMUX_IO, 0x00);
cx_write(TS_HW_SOP_CNTRL,0x47<<16|188<<4|0x01);
- if ((core->board == CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q) ||
- (core->board == CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T) ||
- (core->board == CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD)) {
+ switch (core->board) {
+ case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q:
+ case CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T:
+ case CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD:
cx_write(TS_SOP_STAT, 1<<13);
- } else {
+ break;
+ default:
cx_write(TS_SOP_STAT, 0x00);
+ break;
}
cx_write(TS_GEN_CNTRL, dev->ts_gen_cntrl);
udelay(100);