Skip to contentSkip to conversation

Staging: keucr: Remove all the custom types from the driver except BOOLEAN

PATCH In review Roel Van Nyen 2 participants 2 messages Mar 2, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Staging: keucr: Remove all the custom types from the driver except BOOLEAN

Remove all the custom types from this driver except the BOOLEAN, that will be handled by a separate patch.

---
 drivers/staging/keucr/common.h    |    7 -
 drivers/staging/keucr/init.c      |   54 +++---
 drivers/staging/keucr/init.h      |   18 +-
 drivers/staging/keucr/ms.c        |  208 ++++++++++----------
 drivers/staging/keucr/ms.h        |  262 +++++++++++++-------------
 drivers/staging/keucr/msscsi.c    |   76 ++++----
 drivers/staging/keucr/sdscsi.c    |   48 +++---
 drivers/staging/keucr/smil.h      |  126 ++++++------
 drivers/staging/keucr/smilecc.c   |   88 +++++-----
 drivers/staging/keucr/smilmain.c  |  154 ++++++++--------
 drivers/staging/keucr/smilsub.c   |  386 ++++++++++++++++++------------------
 drivers/staging/keucr/smscsi.c    |   32 ++--
 drivers/staging/keucr/transport.c |    4 +-
 drivers/staging/keucr/transport.h |   48 +++---
 drivers/staging/keucr/usb.c       |    4 +-
 drivers/staging/keucr/usb.h       |   80 ++++----
 16 files changed, 794 insertions(+), 801 deletions(-)
drivers/staging/keucr/common.h +0 -7
index 8693c54..07aabf4 100644
@@ -1,14 +1,7 @@
 #ifndef COMMON_INCD
 #define COMMON_INCD
 
-typedef void VOID;
 typedef u8 BOOLEAN;
-typedef u8 BYTE;
-typedef u8 *PBYTE;
-typedef u16 WORD;
-typedef u16 *PWORD;
-typedef u32 DWORD;
-typedef u32 *PDWORD;
 
 #define swapWORD(w)	((((unsigned short)(w) << 8) & 0xff00) |	\
 			 (((unsigned short)(w) >> 8) & 0x00ff))
drivers/staging/keucr/init.c +27 -27

140 lines not on this page · raw message

drivers/staging/keucr/init.h +9 -9
index 5223132..c758b11 100644
@@ -1,9 +1,9 @@
 #include "common.h"
 
-extern DWORD MediaChange;
+extern u32 MediaChange;
 extern int Check_D_MediaFmt(struct us_data *);
 
-BYTE SD_Init1[] = {
+u8 SD_Init1[] = {
 0x90, 0xFF, 0x09, 0xE0, 0x30, 0xE1, 0x06, 0x90,
 0xFF, 0x23, 0x74, 0x80, 0xF0, 0x90, 0xFF, 0x09,
 0xE0, 0x30, 0xE5, 0xFC, 0x90, 0xFF, 0x83, 0xE0,
@@ -261,7 +261,7 @@ BYTE SD_Init1[] = {
 0x53, 0x44, 0x2D, 0x49, 0x6E, 0x69, 0x74, 0x31,
 0x20, 0x20, 0x20, 0x31, 0x30, 0x30, 0x30, 0x31 };
 
-BYTE SD_Init2[] = {
+u8 SD_Init2[] = {
 0x90, 0xFF, 0x09, 0xE0, 0x30, 0xE1, 0x06, 0x90,
 0xFF, 0x23, 0x74, 0x80, 0xF0, 0x90, 0xFF, 0x09,
 0xE0, 0x30, 0xE5, 0xFC, 0x90, 0xFF, 0x83, 0xE0,
@@ -519,7 +519,7 @@ BYTE SD_Init2[] = {
 0x53, 0x44, 0x2D, 0x49, 0x6E, 0x69, 0x74, 0x32,
 0x20, 0x20, 0x20, 0x31, 0x30, 0x30, 0x30, 0x31 };
 
-BYTE SD_Rdwr[] = {
+u8 SD_Rdwr[] = {
 0x90, 0xF0, 0x11, 0xE0, 0x90, 0xEB, 0x2A, 0xF0,
 0x90, 0xF0, 0x12, 0xE0, 0x90, 0xEB, 0x2B, 0xF0,
 0x90, 0xF0, 0x13, 0xE0, 0x90, 0xEB, 0x2C, 0xF0,
@@ -777,7 +777,7 @@ BYTE SD_Rdwr[] = {
 0x53, 0x44, 0x2D, 0x52, 0x57, 0x20, 0x20, 0x20,
 0x20, 0x20, 0x20, 0x31, 0x30, 0x30, 0x30, 0x31 };
 
-BYTE MS_Init[] = {
+u8 MS_Init[] = {
 0x90, 0xF0, 0x15, 0xE0, 0xF5, 0x1C, 0x11, 0x2C,
 0x90, 0xFF, 0x09, 0xE0, 0x30, 0xE1, 0x06, 0x90,
 0xFF, 0x23, 0x74, 0x80, 0xF0, 0x90, 0xFF, 0x09,
@@ -1035,7 +1035,7 @@ BYTE MS_Init[] = {
 0x4D, 0x53, 0x2D, 0x49, 0x6E, 0x69, 0x74, 0x20,
 0x20, 0x20, 0x20, 0x31, 0x30, 0x30, 0x30, 0x30 };
 
-BYTE MSP_Rdwr[] = {
+u8 MSP_Rdwr[] = {
 0x90, 0xF0, 0x10, 0xE0, 0x90, 0xEA, 0x46, 0xF0,
 0xB4, 0x04, 0x03, 0x02, 0xE1, 0x1E, 0x90, 0xFF,
 0x09, 0xE0, 0x30, 0xE1, 0x06, 0x90, 0xFF, 0x23,
@@ -1293,7 +1293,7 @@ BYTE MSP_Rdwr[] = {
 0x4D, 0x53, 0x50, 0x2D, 0x52, 0x57, 0x20, 0x20,
 0x20, 0x20, 0x20, 0x31, 0x30, 0x30, 0x30, 0x30 };
 
-BYTE MS_Rdwr[] = {
+u8 MS_Rdwr[] = {
 0x90, 0xF0, 0x10, 0xE0, 0x90, 0xEA, 0x46, 0xF0,
 0xB4, 0x02, 0x02, 0x80, 0x36, 0x90, 0xF0, 0x11,
 0xE0, 0xF5, 0x17, 0x90, 0xF0, 0x12, 0xE0, 0xF5,
@@ -1551,7 +1551,7 @@ BYTE MS_Rdwr[] = {
 0x4D, 0x53, 0x2D, 0x52, 0x57, 0x20, 0x20, 0x20,
 0x20, 0x20, 0x20, 0x31, 0x30, 0x30, 0x30, 0x30 };
 
-BYTE SM_Init[] = {
+u8 SM_Init[] = {
 0x7B, 0x09, 0x7C, 0xF0, 0x7D, 0x10, 0x7E, 0xE9,
 0x7F, 0xCC, 0x12, 0x2F, 0x71, 0x90, 0xE9, 0xCC,
 0xE0, 0xB4, 0x07, 0x12, 0x90, 0xFF, 0x09, 0xE0,
@@ -1809,7 +1809,7 @@ BYTE SM_Init[] = {
 0x58, 0x44, 0x2D, 0x49, 0x6E, 0x69, 0x74, 0x20,
 0x20, 0x20, 0x20, 0x31, 0x30, 0x30, 0x30, 0x31 };
 
-BYTE SM_Rdwr[] = {
+u8 SM_Rdwr[] = {
 0x7B, 0x0C, 0x7C, 0xF0, 0x7D, 0x10, 0x7E, 0xE9,
 0x7F, 0xCC, 0x12, 0x2F, 0x71, 0x90, 0xE9, 0xC3,
 0xE0, 0xB4, 0x73, 0x04, 0x74, 0x40, 0x80, 0x09,
drivers/staging/keucr/ms.c +104 -104

514 lines not on this page · raw message

drivers/staging/keucr/ms.h +131 -131

331 lines not on this page · raw message

drivers/staging/keucr/msscsi.c +38 -38

150 lines not on this page · raw message

drivers/staging/keucr/sdscsi.c +24 -24

92 lines not on this page · raw message

drivers/staging/keucr/smil.h +63 -63

182 lines not on this page · raw message

drivers/staging/keucr/smilecc.c +44 -44

143 lines not on this page · raw message

drivers/staging/keucr/smilmain.c +77 -77

407 lines not on this page · raw message

drivers/staging/keucr/smilsub.c +193 -193

960 lines not on this page · raw message

drivers/staging/keucr/smscsi.c +16 -16
index 6211686..5673a07 100644

Lines of this file are not shown. View the raw message.

drivers/staging/keucr/transport.c +2 -2
index 111160c..e47d4d4 100644

Lines of this file are not shown. View the raw message.

drivers/staging/keucr/transport.h +24 -24

48 lines not on this page · raw message

drivers/staging/keucr/usb.c +2 -2
index c65b988..7226344 100644

Lines of this file are not shown. View the raw message.

drivers/staging/keucr/usb.h +40 -40

80 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.1

Part of the diff is not shown here. View the raw message.

#1 lore raw
Quoted 2 lines · Roel Van Nyen

Remove all the custom types from this driver except the BOOLEAN, that will be handled by a separate patch.

I have a pending patch that is about to delete a lot of files in this directory. So care to redo this in a week or so after that one goes in as this will conflict with it.

thanks,

greg k-h