diff options
author | Nicolas Palix <npalix@diku.dk> | 2009-07-29 12:09:45 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:01:52 (GMT) |
commit | 775ef25e575959ba6d104179b62b1b91a256f573 (patch) | |
tree | 877c02579266c126a034cfef16f77760fa4f08a6 /drivers/staging/hv/Vmbus.c | |
parent | b7d7ae6f1de803667f86d2f2a839bf513b294427 (diff) | |
download | linux-fsl-qoriq-775ef25e575959ba6d104179b62b1b91a256f573.tar.xz |
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/Vmbus.c')
-rw-r--r-- | drivers/staging/hv/Vmbus.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/staging/hv/Vmbus.c b/drivers/staging/hv/Vmbus.c index f6be5b5..60f9afc 100644 --- a/drivers/staging/hv/Vmbus.c +++ b/drivers/staging/hv/Vmbus.c @@ -45,7 +45,7 @@ static const GUID gVmbusDeviceId={ .Data = {0xfc, 0x60, 0x37, 0xac, 0xdf, 0x9a, 0xaa, 0x40, 0x94, 0x27, 0xa7, 0x0e, 0xd6, 0xde, 0x95, 0xc5} }; -static DRIVER_OBJECT* gDriver; /* vmbus driver object */ +static struct hv_driver *gDriver; /* vmbus driver object */ static struct hv_device* gDevice; /* vmbus root device */ @@ -82,22 +82,22 @@ VmbusOnDeviceRemove( static void VmbusOnCleanup( - DRIVER_OBJECT* drv + struct hv_driver *drv ); static int VmbusOnISR( - DRIVER_OBJECT* drv + struct hv_driver *drv ); static void VmbusOnMsgDPC( - DRIVER_OBJECT* drv + struct hv_driver *drv ); static void VmbusOnEventDPC( - DRIVER_OBJECT* drv + struct hv_driver *drv ); /*++; @@ -111,7 +111,7 @@ Description: --*/ int VmbusInitialize( - DRIVER_OBJECT* drv + struct hv_driver *drv ) { VMBUS_DRIVER_OBJECT* driver = (VMBUS_DRIVER_OBJECT*)drv; @@ -377,7 +377,7 @@ Description: --*/ void VmbusOnCleanup( - DRIVER_OBJECT* drv + struct hv_driver *drv ) { /* VMBUS_DRIVER_OBJECT* driver = (VMBUS_DRIVER_OBJECT*)drv; */ @@ -401,7 +401,7 @@ Description: --*/ void VmbusOnMsgDPC( - DRIVER_OBJECT* drv + struct hv_driver *drv ) { void *page_addr = gHvContext.synICMessagePage[0]; @@ -460,7 +460,7 @@ Description: --*/ void VmbusOnEventDPC( - DRIVER_OBJECT* drv + struct hv_driver* drv ) { /* TODO: Process any events */ @@ -479,7 +479,7 @@ Description: --*/ int VmbusOnISR( - DRIVER_OBJECT* drv + struct hv_driver *drv ) { /* VMBUS_DRIVER_OBJECT* driver = (VMBUS_DRIVER_OBJECT*)drv; */ |