diff options
author | Sjur Braendeland <sjur.brandeland@stericsson.com> | 2010-04-28 04:54:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-28 15:55:11 -0400 |
commit | e539d83cc8a4fa581cbf8ed288fdadb19a692cb0 (patch) | |
tree | 490f94cd943a62b54ead3905b8075c19ce639612 /include/net/caif | |
parent | d3f744e0d6c1c27a10cdceac6eb946122188dbc9 (diff) |
caif: Rename functions in cfcnfg and caif_dev
Changes:
o Renamed cfcnfg_del_adapt_layer to cfcnfg_disconn_adapt_layer
o Fixed typo cfcfg to cfcnfg
o Renamed linkid to channel_id
o Updated documentation in caif_dev.h
o Minor formatting changes
Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/caif')
-rw-r--r-- | include/net/caif/caif_dev.h | 6 | ||||
-rw-r--r-- | include/net/caif/cfcnfg.h | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/include/net/caif/caif_dev.h b/include/net/caif/caif_dev.h index 42a7c7867849..3aa1ff642323 100644 --- a/include/net/caif/caif_dev.h +++ b/include/net/caif/caif_dev.h | |||
@@ -23,17 +23,19 @@ struct caif_param { | |||
23 | }; | 23 | }; |
24 | 24 | ||
25 | /** | 25 | /** |
26 | * caif_connect_request - Request data for CAIF channel setup. | 26 | * struct caif_connect_request - Request data for CAIF channel setup. |
27 | * @protocol: Type of CAIF protocol to use (at, datagram etc) | ||
27 | * @sockaddr: Socket address to connect. | 28 | * @sockaddr: Socket address to connect. |
28 | * @priority: Priority of the connection. | 29 | * @priority: Priority of the connection. |
29 | * @link_selector: Link selector (high bandwidth or low latency) | 30 | * @link_selector: Link selector (high bandwidth or low latency) |
30 | * @link_name: Name of the CAIF Link Layer to use. | 31 | * @link_name: Name of the CAIF Link Layer to use. |
32 | * @param: Connect Request parameters (CAIF_SO_REQ_PARAM). | ||
31 | * | 33 | * |
32 | * This struct is used when connecting a CAIF channel. | 34 | * This struct is used when connecting a CAIF channel. |
33 | * It contains all CAIF channel configuration options. | 35 | * It contains all CAIF channel configuration options. |
34 | */ | 36 | */ |
35 | struct caif_connect_request { | 37 | struct caif_connect_request { |
36 | int protocol; | 38 | enum caif_protocol_type protocol; |
37 | struct sockaddr_caif sockaddr; | 39 | struct sockaddr_caif sockaddr; |
38 | enum caif_channel_priority priority; | 40 | enum caif_channel_priority priority; |
39 | enum caif_link_selector link_selector; | 41 | enum caif_link_selector link_selector; |
diff --git a/include/net/caif/cfcnfg.h b/include/net/caif/cfcnfg.h index 366082c5d435..f16b875acc48 100644 --- a/include/net/caif/cfcnfg.h +++ b/include/net/caif/cfcnfg.h | |||
@@ -87,13 +87,14 @@ cfcnfg_add_phy_layer(struct cfcnfg *cnfg, enum cfcnfg_phy_type phy_type, | |||
87 | int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer); | 87 | int cfcnfg_del_phy_layer(struct cfcnfg *cnfg, struct cflayer *phy_layer); |
88 | 88 | ||
89 | /** | 89 | /** |
90 | * cfcnfg_del_adapt_layer - Deletes an adaptation layer from the CAIF stack. | 90 | * cfcnfg_disconn_adapt_layer - Disconnects an adaptation layer. |
91 | * | 91 | * |
92 | * @cnfg: Pointer to a CAIF configuration object, created by | 92 | * @cnfg: Pointer to a CAIF configuration object, created by |
93 | * cfcnfg_create(). | 93 | * cfcnfg_create(). |
94 | * @adap_layer: Adaptation layer to be removed. | 94 | * @adap_layer: Adaptation layer to be removed. |
95 | */ | 95 | */ |
96 | int cfcnfg_del_adapt_layer(struct cfcnfg *cnfg, struct cflayer *adap_layer); | 96 | int cfcnfg_disconn_adapt_layer(struct cfcnfg *cnfg, |
97 | struct cflayer *adap_layer); | ||
97 | 98 | ||
98 | /** | 99 | /** |
99 | * cfcnfg_add_adaptation_layer - Add an adaptation layer to the CAIF stack. | 100 | * cfcnfg_add_adaptation_layer - Add an adaptation layer to the CAIF stack. |
@@ -102,14 +103,13 @@ int cfcnfg_del_adapt_layer(struct cfcnfg *cnfg, struct cflayer *adap_layer); | |||
102 | * driver functionality is implemented. | 103 | * driver functionality is implemented. |
103 | * | 104 | * |
104 | * @cnfg: Pointer to a CAIF configuration object, created by | 105 | * @cnfg: Pointer to a CAIF configuration object, created by |
105 | * cfcnfg_create(). | 106 | * cfcnfg_create(). |
106 | * @param: Link setup parameters. | 107 | * @param: Link setup parameters. |
107 | * @adap_layer: Specify the adaptation layer; the receive and | 108 | * @adap_layer: Specify the adaptation layer; the receive and |
108 | * flow-control functions MUST be set in the structure. | 109 | * flow-control functions MUST be set in the structure. |
109 | * | 110 | * |
110 | */ | 111 | */ |
111 | int | 112 | int cfcnfg_add_adaptation_layer(struct cfcnfg *cnfg, |
112 | cfcnfg_add_adaptation_layer(struct cfcnfg *cnfg, | ||
113 | struct cfctrl_link_param *param, | 113 | struct cfctrl_link_param *param, |
114 | struct cflayer *adap_layer); | 114 | struct cflayer *adap_layer); |
115 | 115 | ||