aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/vt6656/tmacro.h
diff options
context:
space:
mode:
authorAndres More <more.andres@gmail.com>2013-02-25 20:32:53 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-11 09:18:47 -0700
commit52a7e64b06f70404c2539e4462063a8df9e4ee13 (patch)
tree9662cd6bbfdba1e9a3e289eea044992a1b19945e /drivers/staging/vt6656/tmacro.h
parent3eaca0d2f5a4137d4a5ecf63cf34cdf13b499bee (diff)
staging: vt6656: replaced custom DWORD definition with u32
Checkpatch findings were not resolved. sed -i 's/\bDWORD\b/u32/g' drivers/staging/vt6656/*.[ch] sed -i 's/\bPDWORD\b/u32 */g' drivers/staging/vt6656/*.[ch] Signed-off-by: Andres More <more.andres@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/tmacro.h')
-rw-r--r--drivers/staging/vt6656/tmacro.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vt6656/tmacro.h b/drivers/staging/vt6656/tmacro.h
index b4e6cb2e4c9..3a5ee0622f2 100644
--- a/drivers/staging/vt6656/tmacro.h
+++ b/drivers/staging/vt6656/tmacro.h
@@ -44,7 +44,7 @@
#define LOWORD(d) ((u16)(d))
#endif
#if !defined(HIWORD)
-#define HIWORD(d) ((u16)((((DWORD)(d)) >> 16) & 0xFFFF))
+#define HIWORD(d) ((u16)((((u32)(d)) >> 16) & 0xFFFF))
#endif
#define LODWORD(q) ((q).u.dwLowDword)
@@ -54,7 +54,7 @@
#define MAKEWORD(lb, hb) ((u16)(((u8)(lb)) | (((u16)((u8)(hb))) << 8)))
#endif
#if !defined(MAKEDWORD)
-#define MAKEDWORD(lw, hw) ((DWORD)(((u16)(lw)) | (((DWORD)((u16)(hw))) << 16)))
+#define MAKEDWORD(lw, hw) ((u32)(((u16)(lw)) | (((u32)((u16)(hw))) << 16)))
#endif
#endif /* __TMACRO_H__ */