diff options
Diffstat (limited to 'net/irda/irlan/irlan_client_event.c')
-rw-r--r-- | net/irda/irlan/irlan_client_event.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/net/irda/irlan/irlan_client_event.c b/net/irda/irlan/irlan_client_event.c index 6afcee59e906..8d5a8ebc444f 100644 --- a/net/irda/irlan/irlan_client_event.c +++ b/net/irda/irlan/irlan_client_event.c | |||
@@ -92,7 +92,7 @@ void irlan_do_client_event(struct irlan_cb *self, IRLAN_EVENT event, | |||
92 | static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | 92 | static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, |
93 | struct sk_buff *skb) | 93 | struct sk_buff *skb) |
94 | { | 94 | { |
95 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 95 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
96 | 96 | ||
97 | IRDA_ASSERT(self != NULL, return -1;); | 97 | IRDA_ASSERT(self != NULL, return -1;); |
98 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); | 98 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); |
@@ -101,7 +101,7 @@ static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | |||
101 | case IRLAN_DISCOVERY_INDICATION: | 101 | case IRLAN_DISCOVERY_INDICATION: |
102 | if (self->client.iriap) { | 102 | if (self->client.iriap) { |
103 | IRDA_WARNING("%s(), busy with a previous query\n", | 103 | IRDA_WARNING("%s(), busy with a previous query\n", |
104 | __FUNCTION__); | 104 | __func__); |
105 | return -EBUSY; | 105 | return -EBUSY; |
106 | } | 106 | } |
107 | 107 | ||
@@ -114,10 +114,10 @@ static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | |||
114 | "IrLAN", "IrDA:TinyTP:LsapSel"); | 114 | "IrLAN", "IrDA:TinyTP:LsapSel"); |
115 | break; | 115 | break; |
116 | case IRLAN_WATCHDOG_TIMEOUT: | 116 | case IRLAN_WATCHDOG_TIMEOUT: |
117 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 117 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
118 | break; | 118 | break; |
119 | default: | 119 | default: |
120 | IRDA_DEBUG(4, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 120 | IRDA_DEBUG(4, "%s(), Unknown event %d\n", __func__ , event); |
121 | break; | 121 | break; |
122 | } | 122 | } |
123 | if (skb) | 123 | if (skb) |
@@ -136,7 +136,7 @@ static int irlan_client_state_idle(struct irlan_cb *self, IRLAN_EVENT event, | |||
136 | static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, | 136 | static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, |
137 | struct sk_buff *skb) | 137 | struct sk_buff *skb) |
138 | { | 138 | { |
139 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 139 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
140 | 140 | ||
141 | IRDA_ASSERT(self != NULL, return -1;); | 141 | IRDA_ASSERT(self != NULL, return -1;); |
142 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); | 142 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); |
@@ -154,7 +154,7 @@ static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, | |||
154 | irlan_next_client_state(self, IRLAN_CONN); | 154 | irlan_next_client_state(self, IRLAN_CONN); |
155 | break; | 155 | break; |
156 | case IRLAN_IAS_PROVIDER_NOT_AVAIL: | 156 | case IRLAN_IAS_PROVIDER_NOT_AVAIL: |
157 | IRDA_DEBUG(2, "%s(), IAS_PROVIDER_NOT_AVAIL\n", __FUNCTION__ ); | 157 | IRDA_DEBUG(2, "%s(), IAS_PROVIDER_NOT_AVAIL\n", __func__ ); |
158 | irlan_next_client_state(self, IRLAN_IDLE); | 158 | irlan_next_client_state(self, IRLAN_IDLE); |
159 | 159 | ||
160 | /* Give the client a kick! */ | 160 | /* Give the client a kick! */ |
@@ -167,10 +167,10 @@ static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, | |||
167 | irlan_next_client_state(self, IRLAN_IDLE); | 167 | irlan_next_client_state(self, IRLAN_IDLE); |
168 | break; | 168 | break; |
169 | case IRLAN_WATCHDOG_TIMEOUT: | 169 | case IRLAN_WATCHDOG_TIMEOUT: |
170 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 170 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
171 | break; | 171 | break; |
172 | default: | 172 | default: |
173 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 173 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
174 | break; | 174 | break; |
175 | } | 175 | } |
176 | if (skb) | 176 | if (skb) |
@@ -189,7 +189,7 @@ static int irlan_client_state_query(struct irlan_cb *self, IRLAN_EVENT event, | |||
189 | static int irlan_client_state_conn(struct irlan_cb *self, IRLAN_EVENT event, | 189 | static int irlan_client_state_conn(struct irlan_cb *self, IRLAN_EVENT event, |
190 | struct sk_buff *skb) | 190 | struct sk_buff *skb) |
191 | { | 191 | { |
192 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 192 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
193 | 193 | ||
194 | IRDA_ASSERT(self != NULL, return -1;); | 194 | IRDA_ASSERT(self != NULL, return -1;); |
195 | 195 | ||
@@ -204,10 +204,10 @@ static int irlan_client_state_conn(struct irlan_cb *self, IRLAN_EVENT event, | |||
204 | irlan_next_client_state(self, IRLAN_IDLE); | 204 | irlan_next_client_state(self, IRLAN_IDLE); |
205 | break; | 205 | break; |
206 | case IRLAN_WATCHDOG_TIMEOUT: | 206 | case IRLAN_WATCHDOG_TIMEOUT: |
207 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 207 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
208 | break; | 208 | break; |
209 | default: | 209 | default: |
210 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 210 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
211 | break; | 211 | break; |
212 | } | 212 | } |
213 | if (skb) | 213 | if (skb) |
@@ -224,7 +224,7 @@ static int irlan_client_state_conn(struct irlan_cb *self, IRLAN_EVENT event, | |||
224 | static int irlan_client_state_info(struct irlan_cb *self, IRLAN_EVENT event, | 224 | static int irlan_client_state_info(struct irlan_cb *self, IRLAN_EVENT event, |
225 | struct sk_buff *skb) | 225 | struct sk_buff *skb) |
226 | { | 226 | { |
227 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 227 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
228 | 228 | ||
229 | IRDA_ASSERT(self != NULL, return -1;); | 229 | IRDA_ASSERT(self != NULL, return -1;); |
230 | 230 | ||
@@ -244,10 +244,10 @@ static int irlan_client_state_info(struct irlan_cb *self, IRLAN_EVENT event, | |||
244 | irlan_next_client_state(self, IRLAN_IDLE); | 244 | irlan_next_client_state(self, IRLAN_IDLE); |
245 | break; | 245 | break; |
246 | case IRLAN_WATCHDOG_TIMEOUT: | 246 | case IRLAN_WATCHDOG_TIMEOUT: |
247 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 247 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
248 | break; | 248 | break; |
249 | default: | 249 | default: |
250 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 250 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
251 | break; | 251 | break; |
252 | } | 252 | } |
253 | if (skb) | 253 | if (skb) |
@@ -266,7 +266,7 @@ static int irlan_client_state_info(struct irlan_cb *self, IRLAN_EVENT event, | |||
266 | static int irlan_client_state_media(struct irlan_cb *self, IRLAN_EVENT event, | 266 | static int irlan_client_state_media(struct irlan_cb *self, IRLAN_EVENT event, |
267 | struct sk_buff *skb) | 267 | struct sk_buff *skb) |
268 | { | 268 | { |
269 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 269 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
270 | 270 | ||
271 | IRDA_ASSERT(self != NULL, return -1;); | 271 | IRDA_ASSERT(self != NULL, return -1;); |
272 | 272 | ||
@@ -281,10 +281,10 @@ static int irlan_client_state_media(struct irlan_cb *self, IRLAN_EVENT event, | |||
281 | irlan_next_client_state(self, IRLAN_IDLE); | 281 | irlan_next_client_state(self, IRLAN_IDLE); |
282 | break; | 282 | break; |
283 | case IRLAN_WATCHDOG_TIMEOUT: | 283 | case IRLAN_WATCHDOG_TIMEOUT: |
284 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 284 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
285 | break; | 285 | break; |
286 | default: | 286 | default: |
287 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 287 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
288 | break; | 288 | break; |
289 | } | 289 | } |
290 | if (skb) | 290 | if (skb) |
@@ -305,7 +305,7 @@ static int irlan_client_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
305 | { | 305 | { |
306 | struct qos_info qos; | 306 | struct qos_info qos; |
307 | 307 | ||
308 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 308 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
309 | 309 | ||
310 | IRDA_ASSERT(self != NULL, return -1;); | 310 | IRDA_ASSERT(self != NULL, return -1;); |
311 | 311 | ||
@@ -344,7 +344,7 @@ static int irlan_client_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
344 | irlan_next_client_state(self, IRLAN_DATA); | 344 | irlan_next_client_state(self, IRLAN_DATA); |
345 | break; | 345 | break; |
346 | default: | 346 | default: |
347 | IRDA_DEBUG(2, "%s(), unknown access type!\n", __FUNCTION__ ); | 347 | IRDA_DEBUG(2, "%s(), unknown access type!\n", __func__ ); |
348 | break; | 348 | break; |
349 | } | 349 | } |
350 | break; | 350 | break; |
@@ -353,10 +353,10 @@ static int irlan_client_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
353 | irlan_next_client_state(self, IRLAN_IDLE); | 353 | irlan_next_client_state(self, IRLAN_IDLE); |
354 | break; | 354 | break; |
355 | case IRLAN_WATCHDOG_TIMEOUT: | 355 | case IRLAN_WATCHDOG_TIMEOUT: |
356 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 356 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
357 | break; | 357 | break; |
358 | default: | 358 | default: |
359 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 359 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
360 | break; | 360 | break; |
361 | } | 361 | } |
362 | 362 | ||
@@ -376,7 +376,7 @@ static int irlan_client_state_open(struct irlan_cb *self, IRLAN_EVENT event, | |||
376 | static int irlan_client_state_wait(struct irlan_cb *self, IRLAN_EVENT event, | 376 | static int irlan_client_state_wait(struct irlan_cb *self, IRLAN_EVENT event, |
377 | struct sk_buff *skb) | 377 | struct sk_buff *skb) |
378 | { | 378 | { |
379 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 379 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
380 | 380 | ||
381 | IRDA_ASSERT(self != NULL, return -1;); | 381 | IRDA_ASSERT(self != NULL, return -1;); |
382 | 382 | ||
@@ -390,10 +390,10 @@ static int irlan_client_state_wait(struct irlan_cb *self, IRLAN_EVENT event, | |||
390 | irlan_next_client_state(self, IRLAN_IDLE); | 390 | irlan_next_client_state(self, IRLAN_IDLE); |
391 | break; | 391 | break; |
392 | case IRLAN_WATCHDOG_TIMEOUT: | 392 | case IRLAN_WATCHDOG_TIMEOUT: |
393 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 393 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
394 | break; | 394 | break; |
395 | default: | 395 | default: |
396 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 396 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
397 | break; | 397 | break; |
398 | } | 398 | } |
399 | if (skb) | 399 | if (skb) |
@@ -407,7 +407,7 @@ static int irlan_client_state_arb(struct irlan_cb *self, IRLAN_EVENT event, | |||
407 | { | 407 | { |
408 | struct qos_info qos; | 408 | struct qos_info qos; |
409 | 409 | ||
410 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 410 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
411 | 411 | ||
412 | IRDA_ASSERT(self != NULL, return -1;); | 412 | IRDA_ASSERT(self != NULL, return -1;); |
413 | 413 | ||
@@ -429,7 +429,7 @@ static int irlan_client_state_arb(struct irlan_cb *self, IRLAN_EVENT event, | |||
429 | } else if (self->client.recv_arb_val > | 429 | } else if (self->client.recv_arb_val > |
430 | self->provider.send_arb_val) | 430 | self->provider.send_arb_val) |
431 | { | 431 | { |
432 | IRDA_DEBUG(2, "%s(), lost the battle :-(\n", __FUNCTION__ ); | 432 | IRDA_DEBUG(2, "%s(), lost the battle :-(\n", __func__ ); |
433 | } | 433 | } |
434 | break; | 434 | break; |
435 | case IRLAN_DATA_CONNECT_INDICATION: | 435 | case IRLAN_DATA_CONNECT_INDICATION: |
@@ -440,10 +440,10 @@ static int irlan_client_state_arb(struct irlan_cb *self, IRLAN_EVENT event, | |||
440 | irlan_next_client_state(self, IRLAN_IDLE); | 440 | irlan_next_client_state(self, IRLAN_IDLE); |
441 | break; | 441 | break; |
442 | case IRLAN_WATCHDOG_TIMEOUT: | 442 | case IRLAN_WATCHDOG_TIMEOUT: |
443 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __FUNCTION__ ); | 443 | IRDA_DEBUG(2, "%s(), IRLAN_WATCHDOG_TIMEOUT\n", __func__ ); |
444 | break; | 444 | break; |
445 | default: | 445 | default: |
446 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 446 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
447 | break; | 447 | break; |
448 | } | 448 | } |
449 | if (skb) | 449 | if (skb) |
@@ -462,7 +462,7 @@ static int irlan_client_state_arb(struct irlan_cb *self, IRLAN_EVENT event, | |||
462 | static int irlan_client_state_data(struct irlan_cb *self, IRLAN_EVENT event, | 462 | static int irlan_client_state_data(struct irlan_cb *self, IRLAN_EVENT event, |
463 | struct sk_buff *skb) | 463 | struct sk_buff *skb) |
464 | { | 464 | { |
465 | IRDA_DEBUG(4, "%s()\n", __FUNCTION__ ); | 465 | IRDA_DEBUG(4, "%s()\n", __func__ ); |
466 | 466 | ||
467 | IRDA_ASSERT(self != NULL, return -1;); | 467 | IRDA_ASSERT(self != NULL, return -1;); |
468 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); | 468 | IRDA_ASSERT(self->magic == IRLAN_MAGIC, return -1;); |
@@ -476,7 +476,7 @@ static int irlan_client_state_data(struct irlan_cb *self, IRLAN_EVENT event, | |||
476 | irlan_next_client_state(self, IRLAN_IDLE); | 476 | irlan_next_client_state(self, IRLAN_IDLE); |
477 | break; | 477 | break; |
478 | default: | 478 | default: |
479 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __FUNCTION__ , event); | 479 | IRDA_DEBUG(2, "%s(), Unknown event %d\n", __func__ , event); |
480 | break; | 480 | break; |
481 | } | 481 | } |
482 | if (skb) | 482 | if (skb) |
@@ -494,7 +494,7 @@ static int irlan_client_state_data(struct irlan_cb *self, IRLAN_EVENT event, | |||
494 | static int irlan_client_state_close(struct irlan_cb *self, IRLAN_EVENT event, | 494 | static int irlan_client_state_close(struct irlan_cb *self, IRLAN_EVENT event, |
495 | struct sk_buff *skb) | 495 | struct sk_buff *skb) |
496 | { | 496 | { |
497 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 497 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
498 | 498 | ||
499 | if (skb) | 499 | if (skb) |
500 | dev_kfree_skb(skb); | 500 | dev_kfree_skb(skb); |
@@ -511,7 +511,7 @@ static int irlan_client_state_close(struct irlan_cb *self, IRLAN_EVENT event, | |||
511 | static int irlan_client_state_sync(struct irlan_cb *self, IRLAN_EVENT event, | 511 | static int irlan_client_state_sync(struct irlan_cb *self, IRLAN_EVENT event, |
512 | struct sk_buff *skb) | 512 | struct sk_buff *skb) |
513 | { | 513 | { |
514 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 514 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
515 | 515 | ||
516 | if (skb) | 516 | if (skb) |
517 | dev_kfree_skb(skb); | 517 | dev_kfree_skb(skb); |