From: Arvydas Sidorenko <asido4@gmail.com>
To: gregkh@suse.de
Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org,
asido4@gmail.com
Subject: [PATCH 3/3] typedef cleanup
Date: Sun, 4 Sep 2011 21:54:45 +0200 [thread overview]
Message-ID: <1315166085-27984-3-git-send-email-asido4@gmail.com> (raw)
In-Reply-To: <1315166085-27984-1-git-send-email-asido4@gmail.com>
Most of those typedefs weren't used, so simply removing them worked without any
compilation issues.
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
---
drivers/staging/crystalhd/bc_dts_types.h | 41 +-----------------------------
1 files changed, 1 insertions(+), 40 deletions(-)
diff --git a/drivers/staging/crystalhd/bc_dts_types.h b/drivers/staging/crystalhd/bc_dts_types.h
index d2131e7..42d7cfd 100644
--- a/drivers/staging/crystalhd/bc_dts_types.h
+++ b/drivers/staging/crystalhd/bc_dts_types.h
@@ -29,29 +29,8 @@
#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
#endif
@@ -70,28 +49,10 @@ typedef unsigned char *PUCHAR;
#else
#ifndef uint64_t
-typedef struct _uint64_t {
+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
-
--
1.7.1
next prev parent reply other threads:[~2011-09-04 19:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-04 19:54 [PATCH 1/3] one typo fix Arvydas Sidorenko
2011-09-04 19:54 ` [PATCH 2/3] syntax typos fix Arvydas Sidorenko
2011-09-04 19:54 ` Arvydas Sidorenko [this message]
2011-09-08 17:35 ` [PATCH 3/3] typedef cleanup Chris Boot
2011-09-09 7:30 ` Dan Carpenter
2011-09-09 8:21 ` Chris Boot
2011-09-06 23:57 ` [PATCH 1/3] one typo fix Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1315166085-27984-3-git-send-email-asido4@gmail.com \
--to=asido4@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).