summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-05-27 08:23:08 +0000
committerMichael Hunold <devnull@localhost>2003-05-27 08:23:08 +0000
commitad0373531b89bbe79715e18bc36f7660d1f2b882 (patch)
treecd52375fa4ae5a60a56d8da681eafe9081950188 /linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h
parentc01ec848557e671b528c110a4e10b7ef48c1418a (diff)
downloadmediapointer-dvb-s2-ad0373531b89bbe79715e18bc36f7660d1f2b882.tar.gz
mediapointer-dvb-s2-ad0373531b89bbe79715e18bc36f7660d1f2b882.tar.bz2
Here comes a huge cleanup patch in order to get the sources into
"kernel shape": I mainly changed all "typedef struct foo_s {...} foo_t" to "struct foo {}". Please don't start a policy war, I know the pros cons of typedefs and structures. We should, however, stick to the coding rules of the kernel: typedefed structs are only used for opaque data types, where the internal representation is irrelevant and we have get()/set() functions for accessing them (ie. spinlock_t)
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h')
-rw-r--r--linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h
index b0dd8199c..e0b9097be 100644
--- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h
+++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.h
@@ -44,15 +44,15 @@
#define MAX_AV_PES_LENGTH 6144
-typedef struct ttusb_dec_s {
+struct ttusb_dec {
/* DVB bits */
struct dvb_adapter *adapter;
- dmxdev_t dmxdev;
+ struct dmxdev dmxdev;
struct dvb_demux demux;
- dmx_frontend_t frontend;
+ struct dmx_frontend frontend;
struct dvb_i2c_bus *i2c_bus;
- dvb_net_t dvb_net;
+ struct dvb_net dvb_net;
u16 pid[DMX_PES_OTHER];
@@ -76,14 +76,14 @@ typedef struct ttusb_dec_s {
int av_pes_length;
int av_pes_payload_length;
- dvb_filter_pes2ts_t a_pes2ts;
- dvb_filter_pes2ts_t v_pes2ts;
- struct semaphore pes2ts_sem;
+ struct dvb_filter_pes2ts a_pes2ts;
+ struct dvb_filter_pes2ts v_pes2ts;
+ struct semaphore pes2ts_sem;
u8 v_pes[16 + MAX_AV_PES_LENGTH];
int v_pes_length;
int v_pes_postbytes;
-} ttusb_dec_t;
+};
#endif