aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaiyang Zhang <haiyangz@microsoft.com>2010-11-08 17:04:43 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-09 19:42:11 -0500
commitd39f12866d90829e1ae0440c0203dd5a162c8cd8 (patch)
tree3fa2a3d6128101335a86630fffce8b1419eaab47
parentd44890c8d2a83116463c230b59b9b9d356aafe85 (diff)
staging: hv: Convert camel cased local variables in osd.c to lower cases
staging: hv: Convert camel cased local variables in osd.c to lower cases 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/osd.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/drivers/staging/hv/osd.c b/drivers/staging/hv/osd.c
index 8c3eb278a81..b39ec250aef 100644
--- a/drivers/staging/hv/osd.c
+++ b/drivers/staging/hv/osd.c
@@ -130,9 +130,9 @@ EXPORT_SYMBOL_GPL(osd_WaitEventCreate);
130 130
131/** 131/**
132 * osd_WaitEventSet() - Wake up the process 132 * osd_WaitEventSet() - Wake up the process
133 * @waitEvent: Structure to event to be woken up 133 * @wait_event: Structure to event to be woken up
134 * 134 *
135 * @waitevent is of type &struct osd_waitevent 135 * @wait_event is of type &struct osd_waitevent
136 * 136 *
137 * Wake up the sleeping process so it can do some work. 137 * Wake up the sleeping process so it can do some work.
138 * And set condition indicator in &struct osd_waitevent to indicate 138 * And set condition indicator in &struct osd_waitevent to indicate
@@ -140,18 +140,18 @@ EXPORT_SYMBOL_GPL(osd_WaitEventCreate);
140 * 140 *
141 * Only used by Network and Storage Hyper-V drivers. 141 * Only used by Network and Storage Hyper-V drivers.
142 */ 142 */
143void osd_WaitEventSet(struct osd_waitevent *waitEvent) 143void osd_WaitEventSet(struct osd_waitevent *wait_event)
144{ 144{
145 waitEvent->condition = 1; 145 wait_event->condition = 1;
146 wake_up_interruptible(&waitEvent->event); 146 wake_up_interruptible(&wait_event->event);
147} 147}
148EXPORT_SYMBOL_GPL(osd_WaitEventSet); 148EXPORT_SYMBOL_GPL(osd_WaitEventSet);
149 149
150/** 150/**
151 * osd_WaitEventWait() - Wait for event till condition is true 151 * osd_WaitEventWait() - Wait for event till condition is true
152 * @waitEvent: Structure to event to be put to sleep 152 * @wait_event: Structure to event to be put to sleep
153 * 153 *
154 * @waitevent is of type &struct osd_waitevent 154 * @wait_event is of type &struct osd_waitevent
155 * 155 *
156 * Set up the process to sleep until waitEvent->condition get true. 156 * Set up the process to sleep until waitEvent->condition get true.
157 * And set condition indicator in &struct osd_waitevent to indicate 157 * And set condition indicator in &struct osd_waitevent to indicate
@@ -161,25 +161,25 @@ EXPORT_SYMBOL_GPL(osd_WaitEventSet);
161 * 161 *
162 * Mainly used by Hyper-V drivers. 162 * Mainly used by Hyper-V drivers.
163 */ 163 */
164int osd_WaitEventWait(struct osd_waitevent *waitEvent) 164int osd_WaitEventWait(struct osd_waitevent *wait_event)
165{ 165{
166 int ret = 0; 166 int ret = 0;
167 167
168 ret = wait_event_interruptible(waitEvent->event, 168 ret = wait_event_interruptible(wait_event->event,
169 waitEvent->condition); 169 wait_event->condition);
170 waitEvent->condition = 0; 170 wait_event->condition = 0;
171 return ret; 171 return ret;
172} 172}
173EXPORT_SYMBOL_GPL(osd_WaitEventWait); 173EXPORT_SYMBOL_GPL(osd_WaitEventWait);
174 174
175/** 175/**
176 * osd_WaitEventWaitEx() - Wait for event or timeout for process wakeup 176 * osd_WaitEventWaitEx() - Wait for event or timeout for process wakeup
177 * @waitEvent: Structure to event to be put to sleep 177 * @wait_event: Structure to event to be put to sleep
178 * @TimeoutInMs: Total number of Milliseconds to wait before waking up 178 * @timeout_in_ms: Total number of Milliseconds to wait before waking up
179 * 179 *
180 * @waitevent is of type &struct osd_waitevent 180 * @wait_event is of type &struct osd_waitevent
181 * Set up the process to sleep until @waitEvent->condition get true or 181 * Set up the process to sleep until @waitEvent->condition get true or
182 * @TimeoutInMs (Time out in Milliseconds) has been reached. 182 * @timeout_in_ms (Time out in Milliseconds) has been reached.
183 * And set condition indicator in &struct osd_waitevent to indicate 183 * And set condition indicator in &struct osd_waitevent to indicate
184 * the process is in a sleeping state. 184 * the process is in a sleeping state.
185 * 185 *
@@ -187,14 +187,14 @@ EXPORT_SYMBOL_GPL(osd_WaitEventWait);
187 * 187 *
188 * Mainly used by Hyper-V drivers. 188 * Mainly used by Hyper-V drivers.
189 */ 189 */
190int osd_WaitEventWaitEx(struct osd_waitevent *waitEvent, u32 TimeoutInMs) 190int osd_WaitEventWaitEx(struct osd_waitevent *wait_event, u32 timeout_in_ms)
191{ 191{
192 int ret = 0; 192 int ret = 0;
193 193
194 ret = wait_event_interruptible_timeout(waitEvent->event, 194 ret = wait_event_interruptible_timeout(wait_event->event,
195 waitEvent->condition, 195 wait_event->condition,
196 msecs_to_jiffies(TimeoutInMs)); 196 msecs_to_jiffies(timeout_in_ms));
197 waitEvent->condition = 0; 197 wait_event->condition = 0;
198 return ret; 198 return ret;
199} 199}
200EXPORT_SYMBOL_GPL(osd_WaitEventWaitEx); 200EXPORT_SYMBOL_GPL(osd_WaitEventWaitEx);