summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/ttype.h
diff options
context:
space:
mode:
authorCharles Clément2010-06-24 20:02:25 +0200
committerGreg Kroah-Hartman2010-06-24 23:23:17 +0200
commit0f4c60d61e9c10a0733eacd650c101189bdf75cd (patch)
tree88cd18c474739648e45ec68e303c0f7351ee546c /drivers/staging/vt6655/ttype.h
parentStaging: d53155_drv.c: cleanup fbuffer usage (diff)
downloadkernel-qcow2-linux-0f4c60d61e9c10a0733eacd650c101189bdf75cd.tar.gz
kernel-qcow2-linux-0f4c60d61e9c10a0733eacd650c101189bdf75cd.tar.xz
kernel-qcow2-linux-0f4c60d61e9c10a0733eacd650c101189bdf75cd.zip
Staging: vt6655: remove DWORD typedef
Replace all occurrences with unsigned long type, except for pointer fields that should be u32 in packed structures and 8-byte-aligned 8 byte long structure QWORD. Thanks to Jiri Slaby for pointing out that simply replacing by unsigned long is wrong on x86-64 arch. Signed-off-by: Charles Clément <caratorn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6655/ttype.h')
-rw-r--r--drivers/staging/vt6655/ttype.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/vt6655/ttype.h b/drivers/staging/vt6655/ttype.h
index 69319a3c94ca..11493e1be904 100644
--- a/drivers/staging/vt6655/ttype.h
+++ b/drivers/staging/vt6655/ttype.h
@@ -70,15 +70,14 @@ typedef int BOOL;
typedef unsigned char BYTE; // 8-bit
typedef unsigned short WORD; // 16-bit
-typedef unsigned long DWORD; // 32-bit
// QWORD is for those situation that we want
// an 8-byte-aligned 8 byte long structure
// which is NOT really a floating point number.
typedef union tagUQuadWord {
struct {
- DWORD dwLowDword;
- DWORD dwHighDword;
+ unsigned int dwLowDword;
+ unsigned int dwHighDword;
} u;
double DoNotUseThisField;
} UQuadWord;