diff options
author | Nicolas Palix <npalix@diku.dk> | 2009-07-29 14:09:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:52 -0700 |
commit | 775ef25e575959ba6d104179b62b1b91a256f573 (patch) | |
tree | 877c02579266c126a034cfef16f77760fa4f08a6 /drivers/staging/hv/NetVsc.c | |
parent | b7d7ae6f1de803667f86d2f2a839bf513b294427 (diff) |
Staging: hv: Remove typedef DRIVER_OBJECT and PDRIVER_OBJECT
typedef DRIVER_OBJECT and PDRIVER_OBJECT are removed and their usages
are replace by the use of struct hv_driver and struct hv_driver *
respectively.
Here is the semantic patch generated to perform this transformation:
(http://coccinelle.lip6.fr/)
//<smpl>
@rm_DRIVER_OBJECT@
@@
-typedef struct _DRIVER_OBJECT
+struct hv_driver
{...}
-DRIVER_OBJECT
;
@rm_PDRIVER_OBJECT@
@@
-typedef struct _DRIVER_OBJECT *PDRIVER_OBJECT;
+struct hv_driver;
@fixtypedef_DRIVER_OBJECT@
typedef DRIVER_OBJECT;
@@
-DRIVER_OBJECT
+struct hv_driver
@fixstruct__DRIVER_OBJECT@
@@
struct
-_DRIVER_OBJECT
+hv_driver
@fixtypedef_PDRIVER_OBJECT@
typedef PDRIVER_OBJECT;
@@
-PDRIVER_OBJECT
+struct hv_driver*
//</smpl>
Signed-off-by: Nicolas Palix <npalix@diku.dk>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/NetVsc.c')
-rw-r--r-- | drivers/staging/hv/NetVsc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/hv/NetVsc.c b/drivers/staging/hv/NetVsc.c index e2a75ce5199..d653f95457a 100644 --- a/drivers/staging/hv/NetVsc.c +++ b/drivers/staging/hv/NetVsc.c @@ -51,7 +51,7 @@ NetVscOnDeviceRemove( static void NetVscOnCleanup( - DRIVER_OBJECT *Driver + struct hv_driver *Driver ); static void @@ -231,7 +231,7 @@ Description: --*/ int NetVscInitialize( - DRIVER_OBJECT *drv + struct hv_driver *drv ) { NETVSC_DRIVER_OBJECT* driver = (NETVSC_DRIVER_OBJECT*)drv; @@ -983,7 +983,7 @@ Description: --*/ void NetVscOnCleanup( - DRIVER_OBJECT *drv + struct hv_driver *drv ) { DPRINT_ENTER(NETVSC); |