diff options
author | Oliver Endriss <o.endriss@gmx.de> | 2010-02-03 16:59:20 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:55 -0500 |
commit | 684688d87d697724c46be77858641ee2e8885b02 (patch) | |
tree | aa44ac65ca876b3b71f8e4936d8e6f8c88302680 /drivers/media/dvb | |
parent | e890e7c0426ab99b032d5b387b1ca9fad6928895 (diff) |
V4L/DVB: ngene: Make checkpatch.pl happy
Make checkpatch.pl happy.
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/ngene/ngene-core.c | 20 | ||||
-rw-r--r-- | drivers/media/dvb/ngene/ngene.h | 15 |
2 files changed, 16 insertions, 19 deletions
diff --git a/drivers/media/dvb/ngene/ngene-core.c b/drivers/media/dvb/ngene/ngene-core.c index 1bb9bc78573e..1b53482f6e7f 100644 --- a/drivers/media/dvb/ngene/ngene-core.c +++ b/drivers/media/dvb/ngene/ngene-core.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <linux/delay.h> | 32 | #include <linux/delay.h> |
33 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
34 | #include <linux/poll.h> | 34 | #include <linux/poll.h> |
35 | #include <asm/io.h> | 35 | #include <linux/io.h> |
36 | #include <asm/div64.h> | 36 | #include <asm/div64.h> |
37 | #include <linux/pci.h> | 37 | #include <linux/pci.h> |
38 | #include <linux/pci_ids.h> | 38 | #include <linux/pci_ids.h> |
@@ -267,11 +267,13 @@ static void dump_command_io(struct ngene *dev) | |||
267 | 267 | ||
268 | ngcpyfrom(buf, HOST_TO_NGENE, 8); | 268 | ngcpyfrom(buf, HOST_TO_NGENE, 8); |
269 | printk(KERN_ERR "host_to_ngene (%04x): %02x %02x %02x %02x %02x %02x %02x %02x\n", | 269 | printk(KERN_ERR "host_to_ngene (%04x): %02x %02x %02x %02x %02x %02x %02x %02x\n", |
270 | HOST_TO_NGENE, buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); | 270 | HOST_TO_NGENE, buf[0], buf[1], buf[2], buf[3], |
271 | buf[4], buf[5], buf[6], buf[7]); | ||
271 | 272 | ||
272 | ngcpyfrom(buf, NGENE_TO_HOST, 8); | 273 | ngcpyfrom(buf, NGENE_TO_HOST, 8); |
273 | printk(KERN_ERR "ngene_to_host (%04x): %02x %02x %02x %02x %02x %02x %02x %02x\n", | 274 | printk(KERN_ERR "ngene_to_host (%04x): %02x %02x %02x %02x %02x %02x %02x %02x\n", |
274 | NGENE_TO_HOST, buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); | 275 | NGENE_TO_HOST, buf[0], buf[1], buf[2], buf[3], |
276 | buf[4], buf[5], buf[6], buf[7]); | ||
275 | 277 | ||
276 | b = dev->hosttongene; | 278 | b = dev->hosttongene; |
277 | printk(KERN_ERR "dev->hosttongene (%p): %02x %02x %02x %02x %02x %02x %02x %02x\n", | 279 | printk(KERN_ERR "dev->hosttongene (%p): %02x %02x %02x %02x %02x %02x %02x %02x\n", |
@@ -1198,7 +1200,7 @@ static int AllocateRingBuffers(struct pci_dev *pci_dev, | |||
1198 | * sizeof(struct HW_SCATTER_GATHER_ELEMENT); | 1200 | * sizeof(struct HW_SCATTER_GATHER_ELEMENT); |
1199 | 1201 | ||
1200 | u64 PASCListMem; | 1202 | u64 PASCListMem; |
1201 | PHW_SCATTER_GATHER_ELEMENT SCListEntry; | 1203 | struct HW_SCATTER_GATHER_ELEMENT *SCListEntry; |
1202 | u64 PASCListEntry; | 1204 | u64 PASCListEntry; |
1203 | struct SBufferHeader *Cur; | 1205 | struct SBufferHeader *Cur; |
1204 | void *SCListMem; | 1206 | void *SCListMem; |
@@ -1220,7 +1222,7 @@ static int AllocateRingBuffers(struct pci_dev *pci_dev, | |||
1220 | pRingBuffer->Buffer1Length = Buffer1Length; | 1222 | pRingBuffer->Buffer1Length = Buffer1Length; |
1221 | pRingBuffer->Buffer2Length = Buffer2Length; | 1223 | pRingBuffer->Buffer2Length = Buffer2Length; |
1222 | 1224 | ||
1223 | SCListEntry = (PHW_SCATTER_GATHER_ELEMENT) SCListMem; | 1225 | SCListEntry = SCListMem; |
1224 | PASCListEntry = PASCListMem; | 1226 | PASCListEntry = PASCListMem; |
1225 | Cur = pRingBuffer->Head; | 1227 | Cur = pRingBuffer->Head; |
1226 | 1228 | ||
@@ -1611,10 +1613,10 @@ static int ngene_start(struct ngene *dev) | |||
1611 | goto fail; | 1613 | goto fail; |
1612 | 1614 | ||
1613 | if (dev->card_info->fw_version == 17) { | 1615 | if (dev->card_info->fw_version == 17) { |
1614 | u8 tsin4_config[6] = | 1616 | u8 tsin4_config[6] = { |
1615 | {3072 / 64, 3072 / 64, 0, 3072 / 64, 3072 / 64, 0}; | 1617 | 3072 / 64, 3072 / 64, 0, 3072 / 64, 3072 / 64, 0}; |
1616 | u8 default_config[6] = | 1618 | u8 default_config[6] = { |
1617 | {4096 / 64, 4096 / 64, 0, 2048 / 64, 2048 / 64, 0}; | 1619 | 4096 / 64, 4096 / 64, 0, 2048 / 64, 2048 / 64, 0}; |
1618 | u8 *bconf = default_config; | 1620 | u8 *bconf = default_config; |
1619 | 1621 | ||
1620 | if (dev->card_info->io_type[3] == NGENE_IO_TSIN) | 1622 | if (dev->card_info->io_type[3] == NGENE_IO_TSIN) |
diff --git a/drivers/media/dvb/ngene/ngene.h b/drivers/media/dvb/ngene/ngene.h index 1c6f0e742ad7..a7eb29846310 100644 --- a/drivers/media/dvb/ngene/ngene.h +++ b/drivers/media/dvb/ngene/ngene.h | |||
@@ -29,7 +29,7 @@ | |||
29 | #include <linux/interrupt.h> | 29 | #include <linux/interrupt.h> |
30 | #include <linux/i2c.h> | 30 | #include <linux/i2c.h> |
31 | #include <asm/dma.h> | 31 | #include <asm/dma.h> |
32 | #include <asm/scatterlist.h> | 32 | #include <linux/scatterlist.h> |
33 | 33 | ||
34 | #include <linux/dvb/frontend.h> | 34 | #include <linux/dvb/frontend.h> |
35 | 35 | ||
@@ -200,8 +200,6 @@ struct EVENT_BUFFER { | |||
200 | u32 Reserved[2]; | 200 | u32 Reserved[2]; |
201 | } __attribute__ ((__packed__)); | 201 | } __attribute__ ((__packed__)); |
202 | 202 | ||
203 | typedef struct EVENT_BUFFER *PEVENT_BUFFER; | ||
204 | |||
205 | /* Firmware commands. */ | 203 | /* Firmware commands. */ |
206 | 204 | ||
207 | enum OPCODES { | 205 | enum OPCODES { |
@@ -488,18 +486,15 @@ struct ngene_command { | |||
488 | 486 | ||
489 | #define EVENT_QUEUE_SIZE 16 | 487 | #define EVENT_QUEUE_SIZE 16 |
490 | 488 | ||
491 | typedef struct HW_SCATTER_GATHER_ELEMENT *PHW_SCATTER_GATHER_ELEMENT; | ||
492 | typedef struct FWRB *PFWRB; | ||
493 | |||
494 | /* Gathers the current state of a single channel. */ | 489 | /* Gathers the current state of a single channel. */ |
495 | 490 | ||
496 | struct SBufferHeader { | 491 | struct SBufferHeader { |
497 | struct BUFFER_HEADER ngeneBuffer; /* Physical descriptor */ | 492 | struct BUFFER_HEADER ngeneBuffer; /* Physical descriptor */ |
498 | struct SBufferHeader *Next; | 493 | struct SBufferHeader *Next; |
499 | void *Buffer1; | 494 | void *Buffer1; |
500 | PHW_SCATTER_GATHER_ELEMENT scList1; | 495 | struct HW_SCATTER_GATHER_ELEMENT *scList1; |
501 | void *Buffer2; | 496 | void *Buffer2; |
502 | PHW_SCATTER_GATHER_ELEMENT scList2; | 497 | struct HW_SCATTER_GATHER_ELEMENT *scList2; |
503 | }; | 498 | }; |
504 | 499 | ||
505 | /* Sizeof SBufferHeader aligned to next 64 Bit boundary (hw restriction) */ | 500 | /* Sizeof SBufferHeader aligned to next 64 Bit boundary (hw restriction) */ |
@@ -554,7 +549,7 @@ enum BufferExchangeFlags { | |||
554 | 549 | ||
555 | typedef void *(IBufferExchange)(void *, void *, u32, u32, u32); | 550 | typedef void *(IBufferExchange)(void *, void *, u32, u32, u32); |
556 | 551 | ||
557 | typedef struct { | 552 | struct MICI_STREAMINFO { |
558 | IBufferExchange *pExchange; | 553 | IBufferExchange *pExchange; |
559 | IBufferExchange *pExchangeVBI; /* Secondary (VBI, ancillary) */ | 554 | IBufferExchange *pExchangeVBI; /* Secondary (VBI, ancillary) */ |
560 | u8 Stream; | 555 | u8 Stream; |
@@ -566,7 +561,7 @@ typedef struct { | |||
566 | u16 nLinesVBI; | 561 | u16 nLinesVBI; |
567 | u16 nBytesPerLineVBI; | 562 | u16 nBytesPerLineVBI; |
568 | u32 CaptureLength; /* Used for audio and transport stream */ | 563 | u32 CaptureLength; /* Used for audio and transport stream */ |
569 | } MICI_STREAMINFO, *PMICI_STREAMINFO; | 564 | }; |
570 | 565 | ||
571 | /****************************************************************************/ | 566 | /****************************************************************************/ |
572 | /* STRUCTS ******************************************************************/ | 567 | /* STRUCTS ******************************************************************/ |