summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/mantis/mantis_dma.c
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2009-12-15 08:47:21 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 11:55:44 -0200
commitf5ae4f6f482191c531ea9e50ac91d9bd2ffca171 (patch)
treea5a1c9553ae58fb19eddbb594f8f0596a3b33e20 /drivers/media/dvb/mantis/mantis_dma.c
parent1e42dc78900e9d0ce89d77f3ba6aca00abd5f1b5 (diff)
V4L/DVB (13809): Fix Checkpatch violations
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_dma.c')
-rw-r--r--drivers/media/dvb/mantis/mantis_dma.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/media/dvb/mantis/mantis_dma.c b/drivers/media/dvb/mantis/mantis_dma.c
index eab3645f7ac..adad1f37efd 100644
--- a/drivers/media/dvb/mantis/mantis_dma.c
+++ b/drivers/media/dvb/mantis/mantis_dma.c
@@ -43,10 +43,10 @@
#define RISC_IRQ (0x01 << 24)
#define RISC_STATUS(status) ((((~status) & 0x0f) << 20) | ((status & 0x0f) << 16))
-#define RISC_FLUSH() mantis->risc_pos = 0
-#define RISC_INSTR(opcode) mantis->risc_cpu[mantis->risc_pos++] = cpu_to_le32(opcode)
+#define RISC_FLUSH() (mantis->risc_pos = 0)
+#define RISC_INSTR(opcode) (mantis->risc_cpu[mantis->risc_pos++] = cpu_to_le32(opcode))
-#define MANTIS_BUF_SIZE 64 * 1024
+#define MANTIS_BUF_SIZE (64 * 1024)
#define MANTIS_BLOCK_BYTES (MANTIS_BUF_SIZE >> 4)
#define MANTIS_BLOCK_COUNT (1 << 4)
#define MANTIS_RISC_SIZE PAGE_SIZE
@@ -158,7 +158,8 @@ int mantis_dma_init(struct mantis_pci *mantis)
goto err;
}
- if ((err = mantis_calc_lines(mantis)) < 0) {
+ err = mantis_calc_lines(mantis);
+ if (err < 0) {
dprintk(MANTIS_ERROR, 1, "Mantis calc lines failed");
goto err;
@@ -248,7 +249,7 @@ void mantis_dma_xfer(unsigned long data)
dprintk(MANTIS_DEBUG, 1, "last block=[%d] finished block=[%d]",
mantis->last_block, mantis->finished_block);
- (config->ts_size ? dvb_dmx_swfilter_204: dvb_dmx_swfilter)
+ (config->ts_size ? dvb_dmx_swfilter_204 : dvb_dmx_swfilter)
(&mantis->demux, &mantis->buf_cpu[mantis->last_block * MANTIS_BLOCK_BYTES], MANTIS_BLOCK_BYTES);
mantis->last_block = (mantis->last_block + 1) % MANTIS_BLOCK_COUNT;
}