linux/drivers/staging/keucr
Himangi Saraogi 432f8574a7 staging:keucr: Remove typedefs
As suggested by Pablo, this patch uses a coccinelle script to remove the
typedefs:
typedef u8 BOOLEAN;  <-- use "bool" instead.
typedef u8 BYTE;     <-- use "u8"
typedef u8 *PBYTE;   <-- use "u8 *"
typedef u16 WORD;    <-- use "u16"
typedef u16 *PWORD;  <-- use "u16 *"
typedef u32 DWORD;   <-- use "u32"
typedef u32 *PDWORD; <-- use "u32 *"
in common.h.

The coccinelle script is:
/* coccinelle script to remove typedefs. */
@remove_typedef@
@@
-typedef bool BOOLEAN;
-typedef u8 BYTE;
-typedef u8 *PBYTE;
-typedef u16 WORD;
-typedef u16 *PWORD;
-typedef u32 DWORD;
-typedef u32 *PDWORD;

@fix_usage@
typedef BOOLEAN;
@@
-BOOLEAN
+bool

@fix_usage1@
typedef BYTE;
@@
-BYTE
+u8

@fix_usage2@
typedef PBYTE;
@@
-PBYTE
+u8 *

@fix_usage3@
typedef WORD;
@@
-WORD
+u16

@fix_usage4@
typedef PWORD;
@@
-PWORD
+u16 *

@fix_usage5@
typedef DWORD;
identifier f;
@@
-DWORD
+u32

@fix_usage6@
typedef PDWORD;
@@
-PDWORD
+u32 *

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
2014-03-16 22:01:41 -07:00
..
common.h staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
init.c staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
init.h staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
Kconfig
Makefile
scsiglue.c staging: keucr: be explicit to the sysfs file permissions 2013-08-24 10:33:07 -07:00
scsiglue.h
smcommon.h staging: keucr: Fix typo in keucr driver 2013-12-17 13:10:40 -08:00
smil.h staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
smilecc.c staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
smilmain.c staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
smilsub.c staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
smscsi.c staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
TODO
transport.c staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
transport.h staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
usb.c staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00
usb.h staging:keucr: Remove typedefs 2014-03-16 22:01:41 -07:00