diff options
author | Nicolas Palix | 2009-07-28 17:32:53 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2009-09-15 21:01:51 +0200 |
commit | 3d3b5518a35fa3c31b74224d944cbc83302c5ab4 (patch) | |
tree | b58f07d29492df39332ad60c4a3dff055dbf5609 /drivers/staging/hv/RndisFilter.c | |
parent | Staging: hv: Remove WORKQUEUE typedef (diff) | |
download | kernel-qcow2-linux-3d3b5518a35fa3c31b74224d944cbc83302c5ab4.tar.gz kernel-qcow2-linux-3d3b5518a35fa3c31b74224d944cbc83302c5ab4.tar.xz kernel-qcow2-linux-3d3b5518a35fa3c31b74224d944cbc83302c5ab4.zip |
Staging: hv: Transform PDEVICE_OBJECT and DEVICE_OBJECT typedefs into their corresponding structs
Remove typedef DEVICE_OBJECT and use a struct named hv_device instead.
Remove typedef PDEVICE_OBJECT which aliases a pointer and use
struct hv_device * instead.
Here is the semantic patch to perform this transformation:
(http://coccinelle.lip6.fr/)
//<smpl>
@rm_PDEVICE_OBJECT@
@@
-typedef struct _DEVICE_OBJECT *PDEVICE_OBJECT;
@rm_DEVICE_OBJECT@
@@
-typedef struct _DEVICE_OBJECT
+struct hv_device
{...}
-DEVICE_OBJECT
;
@fixtypedef_PDEVICE_OBJECT@
typedef PDEVICE_OBJECT;
@@
-PDEVICE_OBJECT
+struct hv_device*
@fixtypedef_DEVICE_OBJECT@
typedef DEVICE_OBJECT;
@@
-DEVICE_OBJECT
+struct hv_device
@fixstruct__DEVICE_OBJECT@
@@
struct
-_DEVICE_OBJECT
+hv_device
//</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/RndisFilter.c')
-rw-r--r-- | drivers/staging/hv/RndisFilter.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/staging/hv/RndisFilter.c b/drivers/staging/hv/RndisFilter.c index fd483fc88aaf..cac07273ca30 100644 --- a/drivers/staging/hv/RndisFilter.c +++ b/drivers/staging/hv/RndisFilter.c @@ -112,7 +112,7 @@ RndisFilterReceiveData( static int RndisFilterOnReceive( - DEVICE_OBJECT *Device, + struct hv_device *Device, NETVSC_PACKET *Packet ); @@ -157,13 +157,13 @@ RndisFilterCloseDevice( static int RndisFilterOnDeviceAdd( - DEVICE_OBJECT *Device, + struct hv_device *Device, void *AdditionalInfo ); static int RndisFilterOnDeviceRemove( - DEVICE_OBJECT *Device + struct hv_device *Device ); static void @@ -173,17 +173,17 @@ RndisFilterOnCleanup( static int RndisFilterOnOpen( - DEVICE_OBJECT *Device + struct hv_device *Device ); static int RndisFilterOnClose( - DEVICE_OBJECT *Device + struct hv_device *Device ); static int RndisFilterOnSend( - DEVICE_OBJECT *Device, + struct hv_device *Device, NETVSC_PACKET *Packet ); @@ -490,7 +490,7 @@ RndisFilterReceiveData( static int RndisFilterOnReceive( - DEVICE_OBJECT *Device, + struct hv_device *Device, NETVSC_PACKET *Packet ) { @@ -928,7 +928,7 @@ RndisFilterCloseDevice( int RndisFilterOnDeviceAdd( - DEVICE_OBJECT *Device, + struct hv_device *Device, void *AdditionalInfo ) { @@ -1007,7 +1007,7 @@ RndisFilterOnDeviceAdd( static int RndisFilterOnDeviceRemove( - DEVICE_OBJECT *Device + struct hv_device *Device ) { struct NETVSC_DEVICE *netDevice = (struct NETVSC_DEVICE*)Device->Extension; @@ -1042,7 +1042,7 @@ RndisFilterOnCleanup( static int RndisFilterOnOpen( - DEVICE_OBJECT *Device + struct hv_device *Device ) { int ret; @@ -1060,7 +1060,7 @@ RndisFilterOnOpen( static int RndisFilterOnClose( - DEVICE_OBJECT *Device + struct hv_device *Device ) { int ret; @@ -1079,7 +1079,7 @@ RndisFilterOnClose( static int RndisFilterOnSend( - DEVICE_OBJECT *Device, + struct hv_device *Device, NETVSC_PACKET *Packet ) { |