aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHank Janssen <hjanssen@microsoft.com>2010-12-06 15:26:51 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-12-06 19:11:10 -0500
commit03fa6fc5a68242ddd7cc3ba4255fe6f65b21ce41 (patch)
tree2608c3d033932cf4baef72e30e1cb4a9059cdbad
parent2e6484acd28bb5223942d2608387af3ec9bf56f1 (diff)
staging: hv: Convert camel case local variables in blkvsc.c to lowercase
Convert camel case local variables in blkvsc.c to lowercase Signed-off-by: Abhishek Kane <v-abkane@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/hv/blkvsc.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/drivers/staging/hv/blkvsc.c b/drivers/staging/hv/blkvsc.c
index 4f4a65c09a94..bc16d9172eb2 100644
--- a/drivers/staging/hv/blkvsc.c
+++ b/drivers/staging/hv/blkvsc.c
@@ -25,24 +25,24 @@
25#include "osd.h" 25#include "osd.h"
26#include "storvsc.c" 26#include "storvsc.c"
27 27
28static const char *gBlkDriverName = "blkvsc"; 28static const char *g_blk_driver_name = "blkvsc";
29 29
30/* {32412632-86cb-44a2-9b5c-50d1417354f5} */ 30/* {32412632-86cb-44a2-9b5c-50d1417354f5} */
31static const struct hv_guid gBlkVscDeviceType = { 31static const struct hv_guid g_blk_device_type = {
32 .data = { 32 .data = {
33 0x32, 0x26, 0x41, 0x32, 0xcb, 0x86, 0xa2, 0x44, 33 0x32, 0x26, 0x41, 0x32, 0xcb, 0x86, 0xa2, 0x44,
34 0x9b, 0x5c, 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5 34 0x9b, 0x5c, 0x50, 0xd1, 0x41, 0x73, 0x54, 0xf5
35 } 35 }
36}; 36};
37 37
38static int blk_vsc_on_device_add(struct hv_device *Device, void *AdditionalInfo) 38static int blk_vsc_on_device_add(struct hv_device *device, void *additional_info)
39{ 39{
40 struct storvsc_device_info *deviceInfo; 40 struct storvsc_device_info *device_info;
41 int ret = 0; 41 int ret = 0;
42 42
43 deviceInfo = (struct storvsc_device_info *)AdditionalInfo; 43 device_info = (struct storvsc_device_info *)additional_info;
44 44
45 ret = stor_vsc_on_device_add(Device, AdditionalInfo); 45 ret = stor_vsc_on_device_add(device, additional_info);
46 if (ret != 0) 46 if (ret != 0)
47 return ret; 47 return ret;
48 48
@@ -51,31 +51,31 @@ static int blk_vsc_on_device_add(struct hv_device *Device, void *AdditionalInfo)
51 * id. For IDE devices, the device instance id is formatted as 51 * id. For IDE devices, the device instance id is formatted as
52 * <bus id> * - <device id> - 8899 - 000000000000. 52 * <bus id> * - <device id> - 8899 - 000000000000.
53 */ 53 */
54 deviceInfo->path_id = Device->deviceInstance.data[3] << 24 | 54 device_info->path_id = device->deviceInstance.data[3] << 24 |
55 Device->deviceInstance.data[2] << 16 | 55 device->deviceInstance.data[2] << 16 |
56 Device->deviceInstance.data[1] << 8 | 56 device->deviceInstance.data[1] << 8 |
57 Device->deviceInstance.data[0]; 57 device->deviceInstance.data[0];
58 58
59 deviceInfo->target_id = Device->deviceInstance.data[5] << 8 | 59 device_info->target_id = device->deviceInstance.data[5] << 8 |
60 Device->deviceInstance.data[4]; 60 device->deviceInstance.data[4];
61 61
62 return ret; 62 return ret;
63} 63}
64 64
65int blk_vsc_initialize(struct hv_driver *Driver) 65int blk_vsc_initialize(struct hv_driver *driver)
66{ 66{
67 struct storvsc_driver_object *storDriver; 67 struct storvsc_driver_object *stor_driver;
68 int ret = 0; 68 int ret = 0;
69 69
70 storDriver = (struct storvsc_driver_object *)Driver; 70 stor_driver = (struct storvsc_driver_object *)driver;
71 71
72 /* Make sure we are at least 2 pages since 1 page is used for control */ 72 /* Make sure we are at least 2 pages since 1 page is used for control */
73 /* ASSERT(storDriver->RingBufferSize >= (PAGE_SIZE << 1)); */ 73 /* ASSERT(stor_driver->RingBufferSize >= (PAGE_SIZE << 1)); */
74 74
75 Driver->name = gBlkDriverName; 75 driver->name = g_blk_driver_name;
76 memcpy(&Driver->deviceType, &gBlkVscDeviceType, sizeof(struct hv_guid)); 76 memcpy(&driver->deviceType, &g_blk_device_type, sizeof(struct hv_guid));
77 77
78 storDriver->request_ext_size = sizeof(struct storvsc_request_extension); 78 stor_driver->request_ext_size = sizeof(struct storvsc_request_extension);
79 79
80 /* 80 /*
81 * Divide the ring buffer data size (which is 1 page less than the ring 81 * Divide the ring buffer data size (which is 1 page less than the ring
@@ -83,20 +83,20 @@ int blk_vsc_initialize(struct hv_driver *Driver)
83 * by the max request size (which is 83 * by the max request size (which is
84 * vmbus_channel_packet_multipage_buffer + struct vstor_packet + u64) 84 * vmbus_channel_packet_multipage_buffer + struct vstor_packet + u64)
85 */ 85 */
86 storDriver->max_outstanding_req_per_channel = 86 stor_driver->max_outstanding_req_per_channel =
87 ((storDriver->ring_buffer_size - PAGE_SIZE) / 87 ((stor_driver->ring_buffer_size - PAGE_SIZE) /
88 ALIGN_UP(MAX_MULTIPAGE_BUFFER_PACKET + 88 ALIGN_UP(MAX_MULTIPAGE_BUFFER_PACKET +
89 sizeof(struct vstor_packet) + sizeof(u64), 89 sizeof(struct vstor_packet) + sizeof(u64),
90 sizeof(u64))); 90 sizeof(u64)));
91 91
92 DPRINT_INFO(BLKVSC, "max io outstd %u", 92 DPRINT_INFO(BLKVSC, "max io outstd %u",
93 storDriver->max_outstanding_req_per_channel); 93 stor_driver->max_outstanding_req_per_channel);
94 94
95 /* Setup the dispatch table */ 95 /* Setup the dispatch table */
96 storDriver->base.OnDeviceAdd = blk_vsc_on_device_add; 96 stor_driver->base.OnDeviceAdd = blk_vsc_on_device_add;
97 storDriver->base.OnDeviceRemove = stor_vsc_on_device_remove; 97 stor_driver->base.OnDeviceRemove = stor_vsc_on_device_remove;
98 storDriver->base.OnCleanup = stor_vsc_on_cleanup; 98 stor_driver->base.OnCleanup = stor_vsc_on_cleanup;
99 storDriver->on_io_request = stor_vsc_on_io_request; 99 stor_driver->on_io_request = stor_vsc_on_io_request;
100 100
101 return ret; 101 return ret;
102} 102}