aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/NetVsc.h
diff options
context:
space:
mode:
authorNicolas Palix <npalix@diku.dk>2009-07-28 17:32:53 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2009-09-15 12:01:51 -0700
commit3d3b5518a35fa3c31b74224d944cbc83302c5ab4 (patch)
treeb58f07d29492df39332ad60c4a3dff055dbf5609 /drivers/staging/hv/NetVsc.h
parentStaging: hv: Remove WORKQUEUE typedef (diff)
downloadlinux-dev-3d3b5518a35fa3c31b74224d944cbc83302c5ab4.tar.xz
linux-dev-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/NetVsc.h')
-rw-r--r--drivers/staging/hv/NetVsc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/NetVsc.h b/drivers/staging/hv/NetVsc.h
index 145b1c5317c1..f7c16801eb3e 100644
--- a/drivers/staging/hv/NetVsc.h
+++ b/drivers/staging/hv/NetVsc.h
@@ -55,7 +55,7 @@
/* Per netvsc channel-specific */
struct NETVSC_DEVICE {
- DEVICE_OBJECT *Device;
+ struct hv_device *Device;
int RefCount;