diff options
Diffstat (limited to 'net/irda/ircomm/ircomm_tty_attach.c')
-rw-r--r-- | net/irda/ircomm/ircomm_tty_attach.c | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/net/irda/ircomm/ircomm_tty_attach.c b/net/irda/ircomm/ircomm_tty_attach.c index b5a13882c927..9032a1d1190d 100644 --- a/net/irda/ircomm/ircomm_tty_attach.c +++ b/net/irda/ircomm/ircomm_tty_attach.c | |||
@@ -129,14 +129,14 @@ static int (*state[])(struct ircomm_tty_cb *self, IRCOMM_TTY_EVENT event, | |||
129 | */ | 129 | */ |
130 | int ircomm_tty_attach_cable(struct ircomm_tty_cb *self) | 130 | int ircomm_tty_attach_cable(struct ircomm_tty_cb *self) |
131 | { | 131 | { |
132 | IRDA_DEBUG(0, "%s()\n", __FUNCTION__ ); | 132 | IRDA_DEBUG(0, "%s()\n", __func__ ); |
133 | 133 | ||
134 | IRDA_ASSERT(self != NULL, return -1;); | 134 | IRDA_ASSERT(self != NULL, return -1;); |
135 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); | 135 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); |
136 | 136 | ||
137 | /* Check if somebody has already connected to us */ | 137 | /* Check if somebody has already connected to us */ |
138 | if (ircomm_is_connected(self->ircomm)) { | 138 | if (ircomm_is_connected(self->ircomm)) { |
139 | IRDA_DEBUG(0, "%s(), already connected!\n", __FUNCTION__ ); | 139 | IRDA_DEBUG(0, "%s(), already connected!\n", __func__ ); |
140 | return 0; | 140 | return 0; |
141 | } | 141 | } |
142 | 142 | ||
@@ -158,7 +158,7 @@ int ircomm_tty_attach_cable(struct ircomm_tty_cb *self) | |||
158 | */ | 158 | */ |
159 | void ircomm_tty_detach_cable(struct ircomm_tty_cb *self) | 159 | void ircomm_tty_detach_cable(struct ircomm_tty_cb *self) |
160 | { | 160 | { |
161 | IRDA_DEBUG(0, "%s()\n", __FUNCTION__ ); | 161 | IRDA_DEBUG(0, "%s()\n", __func__ ); |
162 | 162 | ||
163 | IRDA_ASSERT(self != NULL, return;); | 163 | IRDA_ASSERT(self != NULL, return;); |
164 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 164 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
@@ -207,7 +207,7 @@ static void ircomm_tty_ias_register(struct ircomm_tty_cb *self) | |||
207 | __u8 oct_seq[6]; | 207 | __u8 oct_seq[6]; |
208 | __u16 hints; | 208 | __u16 hints; |
209 | 209 | ||
210 | IRDA_DEBUG(0, "%s()\n", __FUNCTION__ ); | 210 | IRDA_DEBUG(0, "%s()\n", __func__ ); |
211 | 211 | ||
212 | IRDA_ASSERT(self != NULL, return;); | 212 | IRDA_ASSERT(self != NULL, return;); |
213 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 213 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
@@ -308,16 +308,16 @@ int ircomm_tty_send_initial_parameters(struct ircomm_tty_cb *self) | |||
308 | * Set default values, but only if the application for some reason | 308 | * Set default values, but only if the application for some reason |
309 | * haven't set them already | 309 | * haven't set them already |
310 | */ | 310 | */ |
311 | IRDA_DEBUG(2, "%s(), data-rate = %d\n", __FUNCTION__ , | 311 | IRDA_DEBUG(2, "%s(), data-rate = %d\n", __func__ , |
312 | self->settings.data_rate); | 312 | self->settings.data_rate); |
313 | if (!self->settings.data_rate) | 313 | if (!self->settings.data_rate) |
314 | self->settings.data_rate = 9600; | 314 | self->settings.data_rate = 9600; |
315 | IRDA_DEBUG(2, "%s(), data-format = %d\n", __FUNCTION__ , | 315 | IRDA_DEBUG(2, "%s(), data-format = %d\n", __func__ , |
316 | self->settings.data_format); | 316 | self->settings.data_format); |
317 | if (!self->settings.data_format) | 317 | if (!self->settings.data_format) |
318 | self->settings.data_format = IRCOMM_WSIZE_8; /* 8N1 */ | 318 | self->settings.data_format = IRCOMM_WSIZE_8; /* 8N1 */ |
319 | 319 | ||
320 | IRDA_DEBUG(2, "%s(), flow-control = %d\n", __FUNCTION__ , | 320 | IRDA_DEBUG(2, "%s(), flow-control = %d\n", __func__ , |
321 | self->settings.flow_control); | 321 | self->settings.flow_control); |
322 | /*self->settings.flow_control = IRCOMM_RTS_CTS_IN|IRCOMM_RTS_CTS_OUT;*/ | 322 | /*self->settings.flow_control = IRCOMM_RTS_CTS_IN|IRCOMM_RTS_CTS_OUT;*/ |
323 | 323 | ||
@@ -362,7 +362,7 @@ static void ircomm_tty_discovery_indication(discinfo_t *discovery, | |||
362 | struct ircomm_tty_cb *self; | 362 | struct ircomm_tty_cb *self; |
363 | struct ircomm_tty_info info; | 363 | struct ircomm_tty_info info; |
364 | 364 | ||
365 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 365 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
366 | 366 | ||
367 | /* Important note : | 367 | /* Important note : |
368 | * We need to drop all passive discoveries. | 368 | * We need to drop all passive discoveries. |
@@ -398,7 +398,7 @@ void ircomm_tty_disconnect_indication(void *instance, void *sap, | |||
398 | { | 398 | { |
399 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) instance; | 399 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) instance; |
400 | 400 | ||
401 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 401 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
402 | 402 | ||
403 | IRDA_ASSERT(self != NULL, return;); | 403 | IRDA_ASSERT(self != NULL, return;); |
404 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 404 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
@@ -428,7 +428,7 @@ static void ircomm_tty_getvalue_confirm(int result, __u16 obj_id, | |||
428 | { | 428 | { |
429 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) priv; | 429 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) priv; |
430 | 430 | ||
431 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 431 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
432 | 432 | ||
433 | IRDA_ASSERT(self != NULL, return;); | 433 | IRDA_ASSERT(self != NULL, return;); |
434 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 434 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
@@ -439,13 +439,13 @@ static void ircomm_tty_getvalue_confirm(int result, __u16 obj_id, | |||
439 | 439 | ||
440 | /* Check if request succeeded */ | 440 | /* Check if request succeeded */ |
441 | if (result != IAS_SUCCESS) { | 441 | if (result != IAS_SUCCESS) { |
442 | IRDA_DEBUG(4, "%s(), got NULL value!\n", __FUNCTION__ ); | 442 | IRDA_DEBUG(4, "%s(), got NULL value!\n", __func__ ); |
443 | return; | 443 | return; |
444 | } | 444 | } |
445 | 445 | ||
446 | switch (value->type) { | 446 | switch (value->type) { |
447 | case IAS_OCT_SEQ: | 447 | case IAS_OCT_SEQ: |
448 | IRDA_DEBUG(2, "%s(), got octet sequence\n", __FUNCTION__ ); | 448 | IRDA_DEBUG(2, "%s(), got octet sequence\n", __func__ ); |
449 | 449 | ||
450 | irda_param_extract_all(self, value->t.oct_seq, value->len, | 450 | irda_param_extract_all(self, value->t.oct_seq, value->len, |
451 | &ircomm_param_info); | 451 | &ircomm_param_info); |
@@ -455,21 +455,21 @@ static void ircomm_tty_getvalue_confirm(int result, __u16 obj_id, | |||
455 | break; | 455 | break; |
456 | case IAS_INTEGER: | 456 | case IAS_INTEGER: |
457 | /* Got LSAP selector */ | 457 | /* Got LSAP selector */ |
458 | IRDA_DEBUG(2, "%s(), got lsapsel = %d\n", __FUNCTION__ , | 458 | IRDA_DEBUG(2, "%s(), got lsapsel = %d\n", __func__ , |
459 | value->t.integer); | 459 | value->t.integer); |
460 | 460 | ||
461 | if (value->t.integer == -1) { | 461 | if (value->t.integer == -1) { |
462 | IRDA_DEBUG(0, "%s(), invalid value!\n", __FUNCTION__ ); | 462 | IRDA_DEBUG(0, "%s(), invalid value!\n", __func__ ); |
463 | } else | 463 | } else |
464 | self->dlsap_sel = value->t.integer; | 464 | self->dlsap_sel = value->t.integer; |
465 | 465 | ||
466 | ircomm_tty_do_event(self, IRCOMM_TTY_GOT_LSAPSEL, NULL, NULL); | 466 | ircomm_tty_do_event(self, IRCOMM_TTY_GOT_LSAPSEL, NULL, NULL); |
467 | break; | 467 | break; |
468 | case IAS_MISSING: | 468 | case IAS_MISSING: |
469 | IRDA_DEBUG(0, "%s(), got IAS_MISSING\n", __FUNCTION__ ); | 469 | IRDA_DEBUG(0, "%s(), got IAS_MISSING\n", __func__ ); |
470 | break; | 470 | break; |
471 | default: | 471 | default: |
472 | IRDA_DEBUG(0, "%s(), got unknown type!\n", __FUNCTION__ ); | 472 | IRDA_DEBUG(0, "%s(), got unknown type!\n", __func__ ); |
473 | break; | 473 | break; |
474 | } | 474 | } |
475 | irias_delete_value(value); | 475 | irias_delete_value(value); |
@@ -489,7 +489,7 @@ void ircomm_tty_connect_confirm(void *instance, void *sap, | |||
489 | { | 489 | { |
490 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) instance; | 490 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) instance; |
491 | 491 | ||
492 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 492 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
493 | 493 | ||
494 | IRDA_ASSERT(self != NULL, return;); | 494 | IRDA_ASSERT(self != NULL, return;); |
495 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 495 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
@@ -520,7 +520,7 @@ void ircomm_tty_connect_indication(void *instance, void *sap, | |||
520 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) instance; | 520 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) instance; |
521 | int clen; | 521 | int clen; |
522 | 522 | ||
523 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 523 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
524 | 524 | ||
525 | IRDA_ASSERT(self != NULL, return;); | 525 | IRDA_ASSERT(self != NULL, return;); |
526 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 526 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
@@ -549,7 +549,7 @@ void ircomm_tty_connect_indication(void *instance, void *sap, | |||
549 | */ | 549 | */ |
550 | void ircomm_tty_link_established(struct ircomm_tty_cb *self) | 550 | void ircomm_tty_link_established(struct ircomm_tty_cb *self) |
551 | { | 551 | { |
552 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 552 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
553 | 553 | ||
554 | IRDA_ASSERT(self != NULL, return;); | 554 | IRDA_ASSERT(self != NULL, return;); |
555 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 555 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
@@ -566,10 +566,10 @@ void ircomm_tty_link_established(struct ircomm_tty_cb *self) | |||
566 | * line. | 566 | * line. |
567 | */ | 567 | */ |
568 | if ((self->flags & ASYNC_CTS_FLOW) && ((self->settings.dce & IRCOMM_CTS) == 0)) { | 568 | if ((self->flags & ASYNC_CTS_FLOW) && ((self->settings.dce & IRCOMM_CTS) == 0)) { |
569 | IRDA_DEBUG(0, "%s(), waiting for CTS ...\n", __FUNCTION__ ); | 569 | IRDA_DEBUG(0, "%s(), waiting for CTS ...\n", __func__ ); |
570 | return; | 570 | return; |
571 | } else { | 571 | } else { |
572 | IRDA_DEBUG(1, "%s(), starting hardware!\n", __FUNCTION__ ); | 572 | IRDA_DEBUG(1, "%s(), starting hardware!\n", __func__ ); |
573 | 573 | ||
574 | self->tty->hw_stopped = 0; | 574 | self->tty->hw_stopped = 0; |
575 | 575 | ||
@@ -607,7 +607,7 @@ static void ircomm_tty_watchdog_timer_expired(void *data) | |||
607 | { | 607 | { |
608 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) data; | 608 | struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) data; |
609 | 609 | ||
610 | IRDA_DEBUG(2, "%s()\n", __FUNCTION__ ); | 610 | IRDA_DEBUG(2, "%s()\n", __func__ ); |
611 | 611 | ||
612 | IRDA_ASSERT(self != NULL, return;); | 612 | IRDA_ASSERT(self != NULL, return;); |
613 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 613 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
@@ -628,7 +628,7 @@ int ircomm_tty_do_event(struct ircomm_tty_cb *self, IRCOMM_TTY_EVENT event, | |||
628 | IRDA_ASSERT(self != NULL, return -1;); | 628 | IRDA_ASSERT(self != NULL, return -1;); |
629 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); | 629 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;); |
630 | 630 | ||
631 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __FUNCTION__ , | 631 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __func__ , |
632 | ircomm_tty_state[self->state], ircomm_tty_event[event]); | 632 | ircomm_tty_state[self->state], ircomm_tty_event[event]); |
633 | 633 | ||
634 | return (*state[self->state])(self, event, skb, info); | 634 | return (*state[self->state])(self, event, skb, info); |
@@ -646,7 +646,7 @@ static inline void ircomm_tty_next_state(struct ircomm_tty_cb *self, IRCOMM_TTY_ | |||
646 | IRDA_ASSERT(self != NULL, return;); | 646 | IRDA_ASSERT(self != NULL, return;); |
647 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); | 647 | IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return;); |
648 | 648 | ||
649 | IRDA_DEBUG(2, "%s: next state=%s, service type=%d\n", __FUNCTION__ , | 649 | IRDA_DEBUG(2, "%s: next state=%s, service type=%d\n", __func__ , |
650 | ircomm_tty_state[self->state], self->service_type); | 650 | ircomm_tty_state[self->state], self->service_type); |
651 | */ | 651 | */ |
652 | self->state = state; | 652 | self->state = state; |
@@ -665,7 +665,7 @@ static int ircomm_tty_state_idle(struct ircomm_tty_cb *self, | |||
665 | { | 665 | { |
666 | int ret = 0; | 666 | int ret = 0; |
667 | 667 | ||
668 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __FUNCTION__ , | 668 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __func__ , |
669 | ircomm_tty_state[self->state], ircomm_tty_event[event]); | 669 | ircomm_tty_state[self->state], ircomm_tty_event[event]); |
670 | switch (event) { | 670 | switch (event) { |
671 | case IRCOMM_TTY_ATTACH_CABLE: | 671 | case IRCOMM_TTY_ATTACH_CABLE: |
@@ -681,7 +681,7 @@ static int ircomm_tty_state_idle(struct ircomm_tty_cb *self, | |||
681 | 681 | ||
682 | if (self->iriap) { | 682 | if (self->iriap) { |
683 | IRDA_WARNING("%s(), busy with a previous query\n", | 683 | IRDA_WARNING("%s(), busy with a previous query\n", |
684 | __FUNCTION__); | 684 | __func__); |
685 | return -EBUSY; | 685 | return -EBUSY; |
686 | } | 686 | } |
687 | 687 | ||
@@ -709,7 +709,7 @@ static int ircomm_tty_state_idle(struct ircomm_tty_cb *self, | |||
709 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); | 709 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); |
710 | break; | 710 | break; |
711 | default: | 711 | default: |
712 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __FUNCTION__ , | 712 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __func__ , |
713 | ircomm_tty_event[event]); | 713 | ircomm_tty_event[event]); |
714 | ret = -EINVAL; | 714 | ret = -EINVAL; |
715 | } | 715 | } |
@@ -729,7 +729,7 @@ static int ircomm_tty_state_search(struct ircomm_tty_cb *self, | |||
729 | { | 729 | { |
730 | int ret = 0; | 730 | int ret = 0; |
731 | 731 | ||
732 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __FUNCTION__ , | 732 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __func__ , |
733 | ircomm_tty_state[self->state], ircomm_tty_event[event]); | 733 | ircomm_tty_state[self->state], ircomm_tty_event[event]); |
734 | 734 | ||
735 | switch (event) { | 735 | switch (event) { |
@@ -739,7 +739,7 @@ static int ircomm_tty_state_search(struct ircomm_tty_cb *self, | |||
739 | 739 | ||
740 | if (self->iriap) { | 740 | if (self->iriap) { |
741 | IRDA_WARNING("%s(), busy with a previous query\n", | 741 | IRDA_WARNING("%s(), busy with a previous query\n", |
742 | __FUNCTION__); | 742 | __func__); |
743 | return -EBUSY; | 743 | return -EBUSY; |
744 | } | 744 | } |
745 | 745 | ||
@@ -782,7 +782,7 @@ static int ircomm_tty_state_search(struct ircomm_tty_cb *self, | |||
782 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); | 782 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); |
783 | break; | 783 | break; |
784 | default: | 784 | default: |
785 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __FUNCTION__ , | 785 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __func__ , |
786 | ircomm_tty_event[event]); | 786 | ircomm_tty_event[event]); |
787 | ret = -EINVAL; | 787 | ret = -EINVAL; |
788 | } | 788 | } |
@@ -802,14 +802,14 @@ static int ircomm_tty_state_query_parameters(struct ircomm_tty_cb *self, | |||
802 | { | 802 | { |
803 | int ret = 0; | 803 | int ret = 0; |
804 | 804 | ||
805 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __FUNCTION__ , | 805 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __func__ , |
806 | ircomm_tty_state[self->state], ircomm_tty_event[event]); | 806 | ircomm_tty_state[self->state], ircomm_tty_event[event]); |
807 | 807 | ||
808 | switch (event) { | 808 | switch (event) { |
809 | case IRCOMM_TTY_GOT_PARAMETERS: | 809 | case IRCOMM_TTY_GOT_PARAMETERS: |
810 | if (self->iriap) { | 810 | if (self->iriap) { |
811 | IRDA_WARNING("%s(), busy with a previous query\n", | 811 | IRDA_WARNING("%s(), busy with a previous query\n", |
812 | __FUNCTION__); | 812 | __func__); |
813 | return -EBUSY; | 813 | return -EBUSY; |
814 | } | 814 | } |
815 | 815 | ||
@@ -840,7 +840,7 @@ static int ircomm_tty_state_query_parameters(struct ircomm_tty_cb *self, | |||
840 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); | 840 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); |
841 | break; | 841 | break; |
842 | default: | 842 | default: |
843 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __FUNCTION__ , | 843 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __func__ , |
844 | ircomm_tty_event[event]); | 844 | ircomm_tty_event[event]); |
845 | ret = -EINVAL; | 845 | ret = -EINVAL; |
846 | } | 846 | } |
@@ -860,7 +860,7 @@ static int ircomm_tty_state_query_lsap_sel(struct ircomm_tty_cb *self, | |||
860 | { | 860 | { |
861 | int ret = 0; | 861 | int ret = 0; |
862 | 862 | ||
863 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __FUNCTION__ , | 863 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __func__ , |
864 | ircomm_tty_state[self->state], ircomm_tty_event[event]); | 864 | ircomm_tty_state[self->state], ircomm_tty_event[event]); |
865 | 865 | ||
866 | switch (event) { | 866 | switch (event) { |
@@ -889,7 +889,7 @@ static int ircomm_tty_state_query_lsap_sel(struct ircomm_tty_cb *self, | |||
889 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); | 889 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); |
890 | break; | 890 | break; |
891 | default: | 891 | default: |
892 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __FUNCTION__ , | 892 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __func__ , |
893 | ircomm_tty_event[event]); | 893 | ircomm_tty_event[event]); |
894 | ret = -EINVAL; | 894 | ret = -EINVAL; |
895 | } | 895 | } |
@@ -909,7 +909,7 @@ static int ircomm_tty_state_setup(struct ircomm_tty_cb *self, | |||
909 | { | 909 | { |
910 | int ret = 0; | 910 | int ret = 0; |
911 | 911 | ||
912 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __FUNCTION__ , | 912 | IRDA_DEBUG(2, "%s: state=%s, event=%s\n", __func__ , |
913 | ircomm_tty_state[self->state], ircomm_tty_event[event]); | 913 | ircomm_tty_state[self->state], ircomm_tty_event[event]); |
914 | 914 | ||
915 | switch (event) { | 915 | switch (event) { |
@@ -943,7 +943,7 @@ static int ircomm_tty_state_setup(struct ircomm_tty_cb *self, | |||
943 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); | 943 | ircomm_tty_next_state(self, IRCOMM_TTY_IDLE); |
944 | break; | 944 | break; |
945 | default: | 945 | default: |
946 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __FUNCTION__ , | 946 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __func__ , |
947 | ircomm_tty_event[event]); | 947 | ircomm_tty_event[event]); |
948 | ret = -EINVAL; | 948 | ret = -EINVAL; |
949 | } | 949 | } |
@@ -981,13 +981,13 @@ static int ircomm_tty_state_ready(struct ircomm_tty_cb *self, | |||
981 | self->settings.dce = IRCOMM_DELTA_CD; | 981 | self->settings.dce = IRCOMM_DELTA_CD; |
982 | ircomm_tty_check_modem_status(self); | 982 | ircomm_tty_check_modem_status(self); |
983 | } else { | 983 | } else { |
984 | IRDA_DEBUG(0, "%s(), hanging up!\n", __FUNCTION__ ); | 984 | IRDA_DEBUG(0, "%s(), hanging up!\n", __func__ ); |
985 | if (self->tty) | 985 | if (self->tty) |
986 | tty_hangup(self->tty); | 986 | tty_hangup(self->tty); |
987 | } | 987 | } |
988 | break; | 988 | break; |
989 | default: | 989 | default: |
990 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __FUNCTION__ , | 990 | IRDA_DEBUG(2, "%s(), unknown event: %s\n", __func__ , |
991 | ircomm_tty_event[event]); | 991 | ircomm_tty_event[event]); |
992 | ret = -EINVAL; | 992 | ret = -EINVAL; |
993 | } | 993 | } |