]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: crystalhd/bc_dts_types.h: typedef cleanup
authorArvydas Sidorenko <asido4@gmail.com>
Mon, 12 Sep 2011 15:16:39 +0000 (17:16 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Sep 2011 18:12:56 +0000 (20:12 +0200)
Not much left out of this header file. All these typedefs can be found in stdint.h

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/crystalhd/bc_dts_types.h

index d2131e7fe2fbdf212a8128e80220bd69d7c279ca..1085a91221b88ef95ad7445e9692e19e560f14ba 100644 (file)
 #ifndef _BC_DTS_TYPES_H_
 #define _BC_DTS_TYPES_H_
 
-#ifdef __LINUX_USER__  /* Don't include these for KERNEL.. */
 #include <stdint.h>
-#endif
-
-#ifndef PVOID
-typedef void   *PVOID;
-#endif
-
-#ifndef BOOL
-typedef int    BOOL;
-#endif
-
-#if defined(__KERNEL__) || defined(__LINUX_USER__)
-
-#ifdef __LINUX_USER__  /* Don't include these for KERNEL */
-typedef uint32_t       ULONG;
-typedef int32_t                LONG;
-typedef void           *HANDLE;
-#ifndef VOID
-typedef void           VOID;
-#endif
-typedef void           *LPVOID;
-typedef uint32_t       DWORD;
-typedef uint32_t       UINT32;
-typedef uint32_t       *LPDWORD;
-typedef unsigned char  *PUCHAR;
 
 #ifndef TRUE
        #define TRUE            1
@@ -62,36 +37,4 @@ typedef unsigned char        *PUCHAR;
 
 #define TEXT
 
-#else
-
-/* For Kernel usage.. */
-#endif
-
-#else
-
-#ifndef uint64_t
-typedef struct _uint64_t {
-       uint32_t low_dw;
-       uint32_t hi_dw;
-} uint64_t;
 #endif
-
-#ifndef int32_t
-typedef signed long            int32_t;
-#endif
-
-#ifndef uint32_t
-typedef unsigned long  uint32_t;
-#endif
-
-#ifndef uint16_t
-typedef unsigned short uint16_t;
-#endif
-
-#ifndef uint8_t
-typedef unsigned char  uint8_t;
-#endif
-#endif
-
-#endif
-