Skip to content

Commit 7730492

Browse files
Malcolm Priestleygregkh
authored andcommitted
staging: vt6656: 64 bit fixes : correct all type sizes
After this patch all BYTE/WORD/DWORD types can be replaced with the appropriate u sizes. Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 21814d6 commit 7730492

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/staging/vt6656/ttype.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ typedef int BOOL;
4444

4545
/****** Simple typedefs ***************************************************/
4646

47-
typedef unsigned char BYTE; // 8-bit
48-
typedef unsigned short WORD; // 16-bit
49-
typedef unsigned long DWORD; // 32-bit
47+
typedef u8 BYTE;
48+
typedef u16 WORD;
49+
typedef u32 DWORD;
5050

5151
// QWORD is for those situation that we want
5252
// an 8-byte-aligned 8 byte long structure
@@ -62,8 +62,8 @@ typedef UQuadWord QWORD; // 64-bit
6262

6363
/****** Common pointer types ***********************************************/
6464

65-
typedef unsigned long ULONG_PTR; // 32-bit
66-
typedef unsigned long DWORD_PTR; // 32-bit
65+
typedef u32 ULONG_PTR;
66+
typedef u32 DWORD_PTR;
6767

6868
// boolean pointer
6969

0 commit comments

Comments
 (0)