summaryrefslogtreecommitdiff
path: root/drivers/media/video/au0828/au0828-dvb.c
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-04-17 21:41:28 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 14:09:43 -0300
commita9c36aad59a06df199cdbb365d0b05663f8008f1 (patch)
tree505cceb8d6842bf3ff7624de1d619deea98fc8cc /drivers/media/video/au0828/au0828-dvb.c
parent0daa5de740c65de7c9554071eec84c6731370065 (diff)
V4L/DVB (7634): au0828: Cleanup
au0828: Cleanup Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/au0828/au0828-dvb.c')
-rw-r--r--drivers/media/video/au0828/au0828-dvb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/au0828/au0828-dvb.c b/drivers/media/video/au0828/au0828-dvb.c
index 8853f4e26092..4a27e5b41f53 100644
--- a/drivers/media/video/au0828/au0828-dvb.c
+++ b/drivers/media/video/au0828/au0828-dvb.c
@@ -31,6 +31,9 @@
DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
+#define _AU0828_BULKPIPE 0x83
+#define _BULKPIPESIZE 0xe522
+
static struct au8522_config hauppauge_hvr950q_config = {
.demod_address = 0x8e >> 1,
.status_mode = AU8522_DEMODLOCKING,
@@ -66,7 +69,8 @@ static void urb_completion(struct urb *purb)
ptr = (u8 *)purb->transfer_buffer;
/* Feed the transport payload into the kernel demux */
- dvb_dmx_swfilter_packets(&dev->dvb.demux, purb->transfer_buffer, purb->actual_length / 188);
+ dvb_dmx_swfilter_packets(&dev->dvb.demux,
+ purb->transfer_buffer, purb->actual_length / 188);
/* Clean the buffer before we requeue */
memset(purb->transfer_buffer, 0, URB_BUFSIZE);
@@ -81,7 +85,6 @@ static int stop_urb_transfer(struct au0828_dev *dev)
dprintk(2, "%s()\n", __func__);
- /* FIXME: Do we need to free the transfer_buffers? */
for (i = 0; i < URB_COUNT; i++) {
usb_kill_urb(dev->urbs[i]);
kfree(dev->urbs[i]->transfer_buffer);
@@ -93,9 +96,6 @@ static int stop_urb_transfer(struct au0828_dev *dev)
return 0;
}
-#define _AU0828_BULKPIPE 0x83
-#define _BULKPIPESIZE 0xe522
-
static int start_urb_transfer(struct au0828_dev *dev)
{
struct urb *purb;
@@ -306,7 +306,7 @@ void au0828_dvb_unregister(struct au0828_dev *dev)
dprintk(1, "%s()\n", __func__);
- if(dvb->frontend == NULL)
+ if (dvb->frontend == NULL)
return;
dvb_net_release(&dvb->net);