aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/pcbit/capi.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-02-19 22:52:38 -0500
committerJoe Perches <joe@perches.com>2012-02-21 12:04:01 -0500
commit475be4d85a274d0961593db41cf85689db1d583c (patch)
treeb2b8931eb747794730522c3cf1898e46948527b9 /drivers/isdn/pcbit/capi.h
parent0b0a635f79f91f3755b6518627ea06dd0dbfd523 (diff)
isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style. Update the coding style used on a per-line basis so that git diff -w shows only elided blank lines at EOF. Done with emacs and some scripts and some typing. Built x86 allyesconfig. No detected change in objdump -d or size. Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/isdn/pcbit/capi.h')
-rw-r--r--drivers/isdn/pcbit/capi.h46
1 files changed, 20 insertions, 26 deletions
diff --git a/drivers/isdn/pcbit/capi.h b/drivers/isdn/pcbit/capi.h
index df8e73c04d7f..635f63476944 100644
--- a/drivers/isdn/pcbit/capi.h
+++ b/drivers/isdn/pcbit/capi.h
@@ -2,10 +2,10 @@
2 * CAPI encode/decode prototypes and defines 2 * CAPI encode/decode prototypes and defines
3 * 3 *
4 * Copyright (C) 1996 Universidade de Lisboa 4 * Copyright (C) 1996 Universidade de Lisboa
5 * 5 *
6 * Written by Pedro Roque Marques (roque@di.fc.ul.pt) 6 * Written by Pedro Roque Marques (roque@di.fc.ul.pt)
7 * 7 *
8 * This software may be used and distributed according to the terms of 8 * This software may be used and distributed according to the terms of
9 * the GNU General Public License, incorporated herein by reference. 9 * the GNU General Public License, incorporated herein by reference.
10 */ 10 */
11 11
@@ -15,42 +15,42 @@
15 15
16#define REQ_CAUSE 0x01 16#define REQ_CAUSE 0x01
17#define REQ_DISPLAY 0x04 17#define REQ_DISPLAY 0x04
18#define REQ_USER_TO_USER 0x08 18#define REQ_USER_TO_USER 0x08
19 19
20#define AppInfoMask REQ_CAUSE|REQ_DISPLAY|REQ_USER_TO_USER 20#define AppInfoMask REQ_CAUSE | REQ_DISPLAY | REQ_USER_TO_USER
21 21
22/* Connection Setup */ 22/* Connection Setup */
23extern int capi_conn_req(const char * calledPN, struct sk_buff **buf, 23extern int capi_conn_req(const char *calledPN, struct sk_buff **buf,
24 int proto); 24 int proto);
25extern int capi_decode_conn_conf(struct pcbit_chan * chan, struct sk_buff *skb, 25extern int capi_decode_conn_conf(struct pcbit_chan *chan, struct sk_buff *skb,
26 int *complete); 26 int *complete);
27 27
28extern int capi_decode_conn_ind(struct pcbit_chan * chan, struct sk_buff *skb, 28extern int capi_decode_conn_ind(struct pcbit_chan *chan, struct sk_buff *skb,
29 struct callb_data *info); 29 struct callb_data *info);
30extern int capi_conn_resp(struct pcbit_chan* chan, struct sk_buff **skb); 30extern int capi_conn_resp(struct pcbit_chan *chan, struct sk_buff **skb);
31 31
32extern int capi_conn_active_req(struct pcbit_chan* chan, struct sk_buff **skb); 32extern int capi_conn_active_req(struct pcbit_chan *chan, struct sk_buff **skb);
33extern int capi_decode_conn_actv_conf(struct pcbit_chan * chan, 33extern int capi_decode_conn_actv_conf(struct pcbit_chan *chan,
34 struct sk_buff *skb); 34 struct sk_buff *skb);
35 35
36extern int capi_decode_conn_actv_ind(struct pcbit_chan * chan, 36extern int capi_decode_conn_actv_ind(struct pcbit_chan *chan,
37 struct sk_buff *skb); 37 struct sk_buff *skb);
38extern int capi_conn_active_resp(struct pcbit_chan* chan, 38extern int capi_conn_active_resp(struct pcbit_chan *chan,
39 struct sk_buff **skb); 39 struct sk_buff **skb);
40 40
41/* Data */ 41/* Data */
42extern int capi_select_proto_req(struct pcbit_chan *chan, struct sk_buff **skb, 42extern int capi_select_proto_req(struct pcbit_chan *chan, struct sk_buff **skb,
43 int outgoing); 43 int outgoing);
44extern int capi_decode_sel_proto_conf(struct pcbit_chan *chan, 44extern int capi_decode_sel_proto_conf(struct pcbit_chan *chan,
45 struct sk_buff *skb); 45 struct sk_buff *skb);
46 46
47extern int capi_activate_transp_req(struct pcbit_chan *chan, 47extern int capi_activate_transp_req(struct pcbit_chan *chan,
48 struct sk_buff **skb); 48 struct sk_buff **skb);
49extern int capi_decode_actv_trans_conf(struct pcbit_chan *chan, 49extern int capi_decode_actv_trans_conf(struct pcbit_chan *chan,
50 struct sk_buff *skb); 50 struct sk_buff *skb);
51 51
52extern int capi_tdata_req(struct pcbit_chan* chan, struct sk_buff *skb); 52extern int capi_tdata_req(struct pcbit_chan *chan, struct sk_buff *skb);
53extern int capi_tdata_resp(struct pcbit_chan *chan, struct sk_buff ** skb); 53extern int capi_tdata_resp(struct pcbit_chan *chan, struct sk_buff **skb);
54 54
55/* Connection Termination */ 55/* Connection Termination */
56extern int capi_disc_req(ushort callref, struct sk_buff **skb, u_char cause); 56extern int capi_disc_req(ushort callref, struct sk_buff **skb, u_char cause);
@@ -62,12 +62,12 @@ extern int capi_disc_resp(struct pcbit_chan *chan, struct sk_buff **skb);
62extern int capi_decode_debug_188(u_char *hdr, ushort hdrlen); 62extern int capi_decode_debug_188(u_char *hdr, ushort hdrlen);
63#endif 63#endif
64 64
65static inline struct pcbit_chan * 65static inline struct pcbit_chan *
66capi_channel(struct pcbit_dev *dev, struct sk_buff *skb) 66capi_channel(struct pcbit_dev *dev, struct sk_buff *skb)
67{ 67{
68 ushort callref; 68 ushort callref;
69 69
70 callref = *((ushort*) skb->data); 70 callref = *((ushort *)skb->data);
71 skb_pull(skb, 2); 71 skb_pull(skb, 2);
72 72
73 if (dev->b1->callref == callref) 73 if (dev->b1->callref == callref)
@@ -79,9 +79,3 @@ capi_channel(struct pcbit_dev *dev, struct sk_buff *skb)
79} 79}
80 80
81#endif 81#endif
82
83
84
85
86
87