提交 646f1ea3 编写于 作者: H Haiyang Zhang 提交者: Greg Kroah-Hartman

staging: hv: Convert camel cased functions in vmbus_drv.c to lower cases

Signed-off-by: NHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: NHank Janssen <hjanssen@microsoft.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 adf874cb
...@@ -391,7 +391,7 @@ static void vmbus_process_offer(struct work_struct *work) ...@@ -391,7 +391,7 @@ static void vmbus_process_offer(struct work_struct *work)
/* /*
* Start the process of binding this offer to the driver * Start the process of binding this offer to the driver
* We need to set the DeviceObject field before calling * We need to set the DeviceObject field before calling
* VmbusChildDeviceAdd() * vmbus_child_dev_add()
*/ */
newchannel->device_obj = vmbus_child_device_create( newchannel->device_obj = vmbus_child_device_create(
&newchannel->offermsg.offer.InterfaceType, &newchannel->offermsg.offer.InterfaceType,
...@@ -406,7 +406,7 @@ static void vmbus_process_offer(struct work_struct *work) ...@@ -406,7 +406,7 @@ static void vmbus_process_offer(struct work_struct *work)
* binding which eventually invokes the device driver's AddDevice() * binding which eventually invokes the device driver's AddDevice()
* method. * method.
*/ */
ret = VmbusChildDeviceAdd(newchannel->device_obj); ret = vmbus_child_dev_add(newchannel->device_obj);
if (ret != 0) { if (ret != 0) {
DPRINT_ERR(VMBUS, DPRINT_ERR(VMBUS,
"unable to add child device object (relid %d)", "unable to add child device object (relid %d)",
......
...@@ -148,17 +148,17 @@ static const struct hv_guid device_id = { ...@@ -148,17 +148,17 @@ static const struct hv_guid device_id = {
static struct hv_device *vmbus_device; /* vmbus root device */ static struct hv_device *vmbus_device; /* vmbus root device */
/* /*
* VmbusChildDeviceAdd - Registers the child device with the vmbus * vmbus_child_dev_add - Registers the child device with the vmbus
*/ */
int VmbusChildDeviceAdd(struct hv_device *child_dev) int vmbus_child_dev_add(struct hv_device *child_dev)
{ {
return vmbus_child_device_register(vmbus_device, child_dev); return vmbus_child_device_register(vmbus_device, child_dev);
} }
/* /*
* VmbusOnDeviceAdd - Callback when the root bus device is added * vmbus_dev_add - Callback when the root bus device is added
*/ */
static int VmbusOnDeviceAdd(struct hv_device *dev, void *info) static int vmbus_dev_add(struct hv_device *dev, void *info)
{ {
u32 *irqvector = info; u32 *irqvector = info;
int ret; int ret;
...@@ -181,9 +181,9 @@ static int VmbusOnDeviceAdd(struct hv_device *dev, void *info) ...@@ -181,9 +181,9 @@ static int VmbusOnDeviceAdd(struct hv_device *dev, void *info)
} }
/* /*
* VmbusOnDeviceRemove - Callback when the root bus device is removed * vmbus_dev_rm - Callback when the root bus device is removed
*/ */
static int VmbusOnDeviceRemove(struct hv_device *dev) static int vmbus_dev_rm(struct hv_device *dev)
{ {
int ret = 0; int ret = 0;
...@@ -194,9 +194,9 @@ static int VmbusOnDeviceRemove(struct hv_device *dev) ...@@ -194,9 +194,9 @@ static int VmbusOnDeviceRemove(struct hv_device *dev)
} }
/* /*
* VmbusOnCleanup - Perform any cleanup when the driver is removed * vmbus_cleanup - Perform any cleanup when the driver is removed
*/ */
static void VmbusOnCleanup(struct hv_driver *drv) static void vmbus_cleanup(struct hv_driver *drv)
{ {
/* struct vmbus_driver *driver = (struct vmbus_driver *)drv; */ /* struct vmbus_driver *driver = (struct vmbus_driver *)drv; */
...@@ -482,9 +482,9 @@ static int vmbus_bus_init(void) ...@@ -482,9 +482,9 @@ static int vmbus_bus_init(void)
memcpy(&driver->deviceType, &device_type, sizeof(struct hv_guid)); memcpy(&driver->deviceType, &device_type, sizeof(struct hv_guid));
/* Setup dispatch table */ /* Setup dispatch table */
driver->OnDeviceAdd = VmbusOnDeviceAdd; driver->OnDeviceAdd = vmbus_dev_add;
driver->OnDeviceRemove = VmbusOnDeviceRemove; driver->OnDeviceRemove = vmbus_dev_rm;
driver->OnCleanup = VmbusOnCleanup; driver->OnCleanup = vmbus_cleanup;
/* Hypervisor initialization...setup hypercall page..etc */ /* Hypervisor initialization...setup hypercall page..etc */
ret = hv_init(); ret = hv_init();
......
...@@ -102,11 +102,11 @@ extern struct VMBUS_CONNECTION vmbus_connection; ...@@ -102,11 +102,11 @@ extern struct VMBUS_CONNECTION vmbus_connection;
/* General vmbus interface */ /* General vmbus interface */
struct hv_device *vmbus_child_device_create(struct hv_guid *deviceType, struct hv_device *vmbus_child_device_create(struct hv_guid *type,
struct hv_guid *deviceInstance, struct hv_guid *instance,
struct vmbus_channel *channel); struct vmbus_channel *channel);
int VmbusChildDeviceAdd(struct hv_device *Device); int vmbus_child_dev_add(struct hv_device *device);
int vmbus_child_device_register(struct hv_device *root_device_obj, int vmbus_child_device_register(struct hv_device *root_device_obj,
struct hv_device *child_device_obj); struct hv_device *child_device_obj);
void vmbus_child_device_unregister(struct hv_device *device_obj); void vmbus_child_device_unregister(struct hv_device *device_obj);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册