Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f86936ff authored by Tilman Schmidt's avatar Tilman Schmidt Committed by David S. Miller
Browse files

isdn/gigaset: fix readability damage



Fix up some of the readibility deterioration caused by the recent
whitespace coding style cleanup.

Signed-off-by: default avatarTilman Schmidt <tilman@imap.cc>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e055d03d
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -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;
+36 −48
Original line number Diff line number Diff line
@@ -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 */
};

/*
@@ -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 */

		default:
			dev_notice(cs->dev,
				   "%s: unsupported supplementary service function 0x%04x\n",
@@ -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);
}

@@ -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);
}

+153 −148
Original line number Diff line number Diff line
@@ -649,8 +649,8 @@ static void disconnect(struct at_state_t **at_state_p)
static inline struct at_state_t *get_free_channel(struct cardstate *cs,
						  int cid)
/* cids: >0: siemens-cid
   0: without cid
   -1: no cid assigned yet
 *        0: without cid
 *       -1: no cid assigned yet
 */
{
	unsigned long flags;
@@ -1375,6 +1375,7 @@ static void do_action(int action, struct cardstate *cs,
		break;

	/* events from the LL */

	case ACT_DIAL:
		start_dial(at_state, ev->ptr, ev->parameter);
		break;
@@ -1388,6 +1389,7 @@ static void do_action(int action, struct cardstate *cs,
		break;

	/* hotplug events */

	case ACT_STOP:
		do_stop(cs);
		break;
@@ -1396,6 +1398,7 @@ static void do_action(int action, struct cardstate *cs,
		break;

	/* events from the interface */

	case ACT_IF_LOCK:
		cs->cmd_result = ev->parameter ? do_lock(cs) : do_unlock(cs);
		cs->waiting = 0;
@@ -1415,6 +1418,7 @@ static void do_action(int action, struct cardstate *cs,
		break;

	/* events from the proc file system */

	case ACT_PROC_CIDMODE:
		spin_lock_irqsave(&cs->lock, flags);
		if (ev->parameter != cs->cidmode) {
@@ -1434,6 +1438,7 @@ static void do_action(int action, struct cardstate *cs,
		break;

	/* events from the hardware drivers */

	case ACT_NOTIFY_BC_DOWN:
		bchannel_down(bcs);
		break;
+14 −14
Original line number Diff line number Diff line
@@ -163,8 +163,8 @@ void gigaset_dbg_buffer(enum debuglevel level, const unsigned char *msg,
#define BAS_LOWFRAME	5	/* "    "    with negative flow control */
#define BAS_CORRFRAMES	4	/* flow control multiplicator */

#define BAS_INBUFSIZE	(BAS_MAXFRAME * BAS_NUMFRAMES)
/* size of isoc in buf per URB */
#define BAS_INBUFSIZE	(BAS_MAXFRAME * BAS_NUMFRAMES)	/* size of isoc in buf
							 * per URB */
#define BAS_OUTBUFSIZE	4096		/* size of common isoc out buffer */
#define BAS_OUTBUFPAD	BAS_MAXFRAME	/* size of pad area for isoc out buf */

@@ -471,8 +471,8 @@ struct cardstate {
					   for */
	int commands_pending;		/* flag(s) in xxx.commands_pending have
					   been set */
	struct tasklet_struct event_tasklet;
	/* tasklet for serializing AT commands.
	struct tasklet_struct
		event_tasklet;		/* tasklet for serializing AT commands.
					 * Scheduled
					 *   -> for modem reponses (and
					 *      incoming data for M10x)
@@ -480,8 +480,8 @@ struct cardstate {
					 *   -> after setting bits in
					 *      xxx.at_state.pending_command
					 *      (e.g. command from LL) */
	struct tasklet_struct write_tasklet;
	/* tasklet for serial output
	struct tasklet_struct
		write_tasklet;		/* tasklet for serial output
					 * (not used in base driver) */

	/* event queue */