summaryrefslogtreecommitdiff
path: root/drivers/staging/hv/vmbus.h
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2010-02-17 20:58:47 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-04 00:42:37 (GMT)
commitf916a34dc066c13ff2c8986657634cef06c07719 (patch)
tree53daf0a516b49785836dd90a51869e4f9caa57df /drivers/staging/hv/vmbus.h
parent26c14cc119204adc218259251919c5198d07dafe (diff)
downloadlinux-fsl-qoriq-f916a34dc066c13ff2c8986657634cef06c07719.tar.xz
Staging: hv: Rename struct device_context and re-arrange the fields inside
Rename struct device_context and re-arrange the fields inside. Rename struct device_context to struct vm_device, and move struct device field to the end according to Document/driver-model standard. Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/vmbus.h')
-rw-r--r--drivers/staging/hv/vmbus.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/hv/vmbus.h b/drivers/staging/hv/vmbus.h
index ae0a896..6404b84 100644
--- a/drivers/staging/hv/vmbus.h
+++ b/drivers/staging/hv/vmbus.h
@@ -43,23 +43,23 @@ struct driver_context {
void (*shutdown)(struct device *);
};
-struct device_context {
+struct vm_device {
struct work_struct probe_failed_work_item;
struct hv_guid class_id;
struct hv_guid device_id;
int probe_error;
- struct device device;
struct hv_device device_obj;
+ struct device device;
};
-static inline struct device_context *to_device_context(struct hv_device *d)
+static inline struct vm_device *to_vm_device(struct hv_device *d)
{
- return container_of(d, struct device_context, device_obj);
+ return container_of(d, struct vm_device, device_obj);
}
-static inline struct device_context *device_to_device_context(struct device *d)
+static inline struct vm_device *device_to_vm_device(struct device *d)
{
- return container_of(d, struct device_context, device);
+ return container_of(d, struct vm_device, device);
}
static inline struct driver_context *driver_to_driver_context(struct device_driver *d)