Skip to content

Commit

Permalink
isdn/gigaset: fix readability damage
Browse files Browse the repository at this point in the history
Fix up some of the readibility deterioration caused by the recent
whitespace coding style cleanup.

Signed-off-by: Tilman Schmidt <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tilmanschmidt authored and davem330 committed May 8, 2012
1 parent e055d03 commit f86936f
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 216 deletions.
11 changes: 5 additions & 6 deletions drivers/isdn/gigaset/bas-gigaset.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,10 @@ static void check_pending(struct bas_cardstate *ucs)
if (!(ucs->basstate & BS_RESETTING))
ucs->pending = 0;
break;
/*
* HD_READ_ATMESSAGE and HD_WRITE_ATMESSAGE are handled separately
* and should never end up here
*/
/*
* HD_READ_ATMESSAGE and HD_WRITE_ATMESSAGE are handled separately
* and should never end up here
*/
default:
dev_warn(&ucs->interface->dev,
"unknown pending request 0x%02x cleared\n",
Expand Down Expand Up @@ -877,8 +877,7 @@ static void read_iso_callback(struct urb *urb)
for (i = 0; i < BAS_NUMFRAMES; i++) {
ubc->isoinlost += urb->iso_frame_desc[i].actual_length;
if (unlikely(urb->iso_frame_desc[i].status != 0 &&
urb->iso_frame_desc[i].status !=
-EINPROGRESS))
urb->iso_frame_desc[i].status != -EINPROGRESS))
ubc->loststatus = urb->iso_frame_desc[i].status;
urb->iso_frame_desc[i].status = 0;
urb->iso_frame_desc[i].actual_length = 0;
Expand Down
84 changes: 36 additions & 48 deletions drivers/isdn/gigaset/capi.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,51 +109,35 @@ static struct {
u8 *bc;
u8 *hlc;
} cip2bchlc[] = {
[1] = { "8090A3", NULL },
/* Speech (A-law) */
[2] = { "8890", NULL },
/* Unrestricted digital information */
[3] = { "8990", NULL },
/* Restricted digital information */
[4] = { "9090A3", NULL },
/* 3,1 kHz audio (A-law) */
[5] = { "9190", NULL },
/* 7 kHz audio */
[6] = { "9890", NULL },
/* Video */
[7] = { "88C0C6E6", NULL },
/* Packet mode */
[8] = { "8890218F", NULL },
/* 56 kbit/s rate adaptation */
[9] = { "9190A5", NULL },
/* Unrestricted digital information with tones/announcements */
[16] = { "8090A3", "9181" },
/* Telephony */
[17] = { "9090A3", "9184" },
/* Group 2/3 facsimile */
[18] = { "8890", "91A1" },
/* Group 4 facsimile Class 1 */
[19] = { "8890", "91A4" },
/* Teletex service basic and mixed mode
and Group 4 facsimile service Classes II and III */
[20] = { "8890", "91A8" },
/* Teletex service basic and processable mode */
[21] = { "8890", "91B1" },
/* Teletex service basic mode */
[22] = { "8890", "91B2" },
/* International interworking for Videotex */
[23] = { "8890", "91B5" },
/* Telex */
[24] = { "8890", "91B8" },
/* Message Handling Systems in accordance with X.400 */
[25] = { "8890", "91C1" },
/* OSI application in accordance with X.200 */
[26] = { "9190A5", "9181" },
/* 7 kHz telephony */
[27] = { "9190A5", "916001" },
/* Video telephony, first connection */
[28] = { "8890", "916002" },
/* Video telephony, second connection */
[1] = { "8090A3", NULL }, /* Speech (A-law) */
[2] = { "8890", NULL }, /* Unrestricted digital information */
[3] = { "8990", NULL }, /* Restricted digital information */
[4] = { "9090A3", NULL }, /* 3,1 kHz audio (A-law) */
[5] = { "9190", NULL }, /* 7 kHz audio */
[6] = { "9890", NULL }, /* Video */
[7] = { "88C0C6E6", NULL }, /* Packet mode */
[8] = { "8890218F", NULL }, /* 56 kbit/s rate adaptation */
[9] = { "9190A5", NULL }, /* Unrestricted digital information
* with tones/announcements */
[16] = { "8090A3", "9181" }, /* Telephony */
[17] = { "9090A3", "9184" }, /* Group 2/3 facsimile */
[18] = { "8890", "91A1" }, /* Group 4 facsimile Class 1 */
[19] = { "8890", "91A4" }, /* Teletex service basic and mixed mode
* and Group 4 facsimile service
* Classes II and III */
[20] = { "8890", "91A8" }, /* Teletex service basic and
* processable mode */
[21] = { "8890", "91B1" }, /* Teletex service basic mode */
[22] = { "8890", "91B2" }, /* International interworking for
* Videotex */
[23] = { "8890", "91B5" }, /* Telex */
[24] = { "8890", "91B8" }, /* Message Handling Systems
* in accordance with X.400 */
[25] = { "8890", "91C1" }, /* OSI application
* in accordance with X.200 */
[26] = { "9190A5", "9181" }, /* 7 kHz telephony */
[27] = { "9190A5", "916001" }, /* Video telephony, first connection */
[28] = { "8890", "916002" }, /* Video telephony, second connection */
};

/*
Expand Down Expand Up @@ -1197,7 +1181,9 @@ static void do_facility_req(struct gigaset_capi_ctr *iif,
confparam[3] = 2; /* length */
capimsg_setu16(confparam, 4, CapiSuccess);
break;
/* ToDo: add supported services */

/* ToDo: add supported services */

default:
dev_notice(cs->dev,
"%s: unsupported supplementary service function 0x%04x\n",
Expand Down Expand Up @@ -1771,7 +1757,8 @@ static void do_connect_b3_req(struct gigaset_capi_ctr *iif,

/* NCPI parameter: not applicable for B3 Transparent */
ignore_cstruct_param(cs, cmsg->NCPI, "CONNECT_B3_REQ", "NCPI");
send_conf(iif, ap, skb, (cmsg->NCPI && cmsg->NCPI[0]) ?
send_conf(iif, ap, skb,
(cmsg->NCPI && cmsg->NCPI[0]) ?
CapiNcpiNotSupportedByProtocol : CapiSuccess);
}

Expand Down Expand Up @@ -1975,7 +1962,8 @@ static void do_disconnect_b3_req(struct gigaset_capi_ctr *iif,
/* NCPI parameter: not applicable for B3 Transparent */
ignore_cstruct_param(cs, cmsg->NCPI,
"DISCONNECT_B3_REQ", "NCPI");
send_conf(iif, ap, skb, (cmsg->NCPI && cmsg->NCPI[0]) ?
send_conf(iif, ap, skb,
(cmsg->NCPI && cmsg->NCPI[0]) ?
CapiNcpiNotSupportedByProtocol : CapiSuccess);
}

Expand Down
Loading

0 comments on commit f86936f

Please sign in to comment.