aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/upc.h
diff options
context:
space:
mode:
authorCharles Clément <caratorn@gmail.com>2010-06-24 14:02:25 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-24 17:23:17 -0400
commit0f4c60d61e9c10a0733eacd650c101189bdf75cd (patch)
tree88cd18c474739648e45ec68e303c0f7351ee546c /drivers/staging/vt6655/upc.h
parent17701d14b613b8495cdd8b803c22d3f33d1face8 (diff)
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/upc.h')
-rw-r--r--drivers/staging/vt6655/upc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/vt6655/upc.h b/drivers/staging/vt6655/upc.h
index 7abd231c4d5..fc97a30f340 100644
--- a/drivers/staging/vt6655/upc.h
+++ b/drivers/staging/vt6655/upc.h
@@ -87,7 +87,7 @@
87} 87}
88 88
89#define VNSvInPortD(dwIOAddress, pdwData) { \ 89#define VNSvInPortD(dwIOAddress, pdwData) { \
90 volatile DWORD* pdwAddr = ((unsigned long *)(dwIOAddress)); \ 90 volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
91 *(pdwData) = readl(pdwAddr); \ 91 *(pdwData) = readl(pdwAddr); \
92} 92}
93 93
@@ -104,8 +104,8 @@
104} 104}
105 105
106#define VNSvOutPortD(dwIOAddress, dwData) { \ 106#define VNSvOutPortD(dwIOAddress, dwData) { \
107 volatile DWORD* pdwAddr = ((unsigned long *)(dwIOAddress)); \ 107 volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
108 writel((DWORD)dwData, pdwAddr); \ 108 writel((unsigned long)dwData, pdwAddr); \
109} 109}
110 110
111#endif 111#endif