diff options
Diffstat (limited to 'net/caif/cfcnfg.c')
-rw-r--r-- | net/caif/cfcnfg.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/net/caif/cfcnfg.c b/net/caif/cfcnfg.c index f1dbddb95a6c..fa39fc298708 100644 --- a/net/caif/cfcnfg.c +++ b/net/caif/cfcnfg.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) ST-Ericsson AB 2010 | 2 | * Copyright (C) ST-Ericsson AB 2010 |
3 | * Author: Sjur Brendeland/sjur.brandeland@stericsson.com | 3 | * Author: Sjur Brendeland |
4 | * License terms: GNU General Public License (GPL) version 2 | 4 | * License terms: GNU General Public License (GPL) version 2 |
5 | */ | 5 | */ |
6 | 6 | ||
@@ -61,11 +61,11 @@ struct cfcnfg { | |||
61 | }; | 61 | }; |
62 | 62 | ||
63 | static void cfcnfg_linkup_rsp(struct cflayer *layer, u8 channel_id, | 63 | static void cfcnfg_linkup_rsp(struct cflayer *layer, u8 channel_id, |
64 | enum cfctrl_srv serv, u8 phyid, | 64 | enum cfctrl_srv serv, u8 phyid, |
65 | struct cflayer *adapt_layer); | 65 | struct cflayer *adapt_layer); |
66 | static void cfcnfg_linkdestroy_rsp(struct cflayer *layer, u8 channel_id); | 66 | static void cfcnfg_linkdestroy_rsp(struct cflayer *layer, u8 channel_id); |
67 | static void cfcnfg_reject_rsp(struct cflayer *layer, u8 channel_id, | 67 | static void cfcnfg_reject_rsp(struct cflayer *layer, u8 channel_id, |
68 | struct cflayer *adapt_layer); | 68 | struct cflayer *adapt_layer); |
69 | static void cfctrl_resp_func(void); | 69 | static void cfctrl_resp_func(void); |
70 | static void cfctrl_enum_resp(void); | 70 | static void cfctrl_enum_resp(void); |
71 | 71 | ||
@@ -131,7 +131,7 @@ static void cfctrl_resp_func(void) | |||
131 | } | 131 | } |
132 | 132 | ||
133 | static struct cfcnfg_phyinfo *cfcnfg_get_phyinfo_rcu(struct cfcnfg *cnfg, | 133 | static struct cfcnfg_phyinfo *cfcnfg_get_phyinfo_rcu(struct cfcnfg *cnfg, |
134 | u8 phyid) | 134 | u8 phyid) |
135 | { | 135 | { |
136 | struct cfcnfg_phyinfo *phy; | 136 | struct cfcnfg_phyinfo *phy; |
137 | 137 | ||
@@ -216,8 +216,8 @@ static const int protohead[CFCTRL_SRV_MASK] = { | |||
216 | 216 | ||
217 | 217 | ||
218 | static int caif_connect_req_to_link_param(struct cfcnfg *cnfg, | 218 | static int caif_connect_req_to_link_param(struct cfcnfg *cnfg, |
219 | struct caif_connect_request *s, | 219 | struct caif_connect_request *s, |
220 | struct cfctrl_link_param *l) | 220 | struct cfctrl_link_param *l) |
221 | { | 221 | { |
222 | struct dev_info *dev_info; | 222 | struct dev_info *dev_info; |
223 | enum cfcnfg_phy_preference pref; | 223 | enum cfcnfg_phy_preference pref; |
@@ -301,8 +301,7 @@ static int caif_connect_req_to_link_param(struct cfcnfg *cnfg, | |||
301 | 301 | ||
302 | int caif_connect_client(struct net *net, struct caif_connect_request *conn_req, | 302 | int caif_connect_client(struct net *net, struct caif_connect_request *conn_req, |
303 | struct cflayer *adap_layer, int *ifindex, | 303 | struct cflayer *adap_layer, int *ifindex, |
304 | int *proto_head, | 304 | int *proto_head, int *proto_tail) |
305 | int *proto_tail) | ||
306 | { | 305 | { |
307 | struct cflayer *frml; | 306 | struct cflayer *frml; |
308 | struct cfcnfg_phyinfo *phy; | 307 | struct cfcnfg_phyinfo *phy; |
@@ -364,7 +363,7 @@ unlock: | |||
364 | EXPORT_SYMBOL(caif_connect_client); | 363 | EXPORT_SYMBOL(caif_connect_client); |
365 | 364 | ||
366 | static void cfcnfg_reject_rsp(struct cflayer *layer, u8 channel_id, | 365 | static void cfcnfg_reject_rsp(struct cflayer *layer, u8 channel_id, |
367 | struct cflayer *adapt_layer) | 366 | struct cflayer *adapt_layer) |
368 | { | 367 | { |
369 | if (adapt_layer != NULL && adapt_layer->ctrlcmd != NULL) | 368 | if (adapt_layer != NULL && adapt_layer->ctrlcmd != NULL) |
370 | adapt_layer->ctrlcmd(adapt_layer, | 369 | adapt_layer->ctrlcmd(adapt_layer, |
@@ -526,7 +525,7 @@ out_err: | |||
526 | EXPORT_SYMBOL(cfcnfg_add_phy_layer); | 525 | EXPORT_SYMBOL(cfcnfg_add_phy_layer); |
527 | 526 | ||
528 | int cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer, | 527 | int cfcnfg_set_phy_state(struct cfcnfg *cnfg, struct cflayer *phy_layer, |
529 | bool up) | 528 | bool up) |
530 | { | 529 | { |
531 | struct cfcnfg_phyinfo *phyinfo; | 530 | struct cfcnfg_phyinfo *phyinfo; |
532 | 531 | ||