summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6655/upc.h
diff options
context:
space:
mode:
authorCharles Clément <caratorn@gmail.com>2010-06-24 22:02:25 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-25 01:23:17 +0400
commit0f4c60d61e9c10a0733eacd650c101189bdf75cd (patch)
tree88cd18c474739648e45ec68e303c0f7351ee546c /drivers/staging/vt6655/upc.h
parent17701d14b613b8495cdd8b803c22d3f33d1face8 (diff)
downloadlinux-0f4c60d61e9c10a0733eacd650c101189bdf75cd.tar.xz
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 7abd231c4d57..fc97a30f3409 100644
--- a/drivers/staging/vt6655/upc.h
+++ b/drivers/staging/vt6655/upc.h
@@ -87,7 +87,7 @@
}
#define VNSvInPortD(dwIOAddress, pdwData) { \
- volatile DWORD* pdwAddr = ((unsigned long *)(dwIOAddress)); \
+ volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
*(pdwData) = readl(pdwAddr); \
}
@@ -104,8 +104,8 @@
}
#define VNSvOutPortD(dwIOAddress, dwData) { \
- volatile DWORD* pdwAddr = ((unsigned long *)(dwIOAddress)); \
- writel((DWORD)dwData, pdwAddr); \
+ volatile unsigned long *pdwAddr = ((unsigned long *)(dwIOAddress)); \
+ writel((unsigned long)dwData, pdwAddr); \
}
#endif