diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-04-11 06:43:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-11 18:08:47 -0400 |
commit | 73d6ac633c6c0ca703f90db0b808d9593e46aef6 (patch) | |
tree | 738fb16f97e24288f9db9c6b43b4bcee4f794dc6 /include/net/caif/caif_dev.h | |
parent | 1c01a80cfec6f806246f31ff2680cd3639b30e67 (diff) |
caif: code cleanup
Cleanup of new CAIF code.
* make local functions static
* remove code that is never used
* expand get_caif_conf() since wrapper is no longer needed
* make args to comparison functions const
* rename connect_req_to_link_param to keep exported names
consistent
Compile tested only.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/caif/caif_dev.h')
-rw-r--r-- | include/net/caif/caif_dev.h | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/include/net/caif/caif_dev.h b/include/net/caif/caif_dev.h index 8eff83b95366..7e3f7a6d2ba3 100644 --- a/include/net/caif/caif_dev.h +++ b/include/net/caif/caif_dev.h | |||
@@ -74,19 +74,8 @@ int caif_connect_client(struct caif_connect_request *conn_req, | |||
74 | int caif_disconnect_client(struct cflayer *client_layer); | 74 | int caif_disconnect_client(struct cflayer *client_layer); |
75 | 75 | ||
76 | /** | 76 | /** |
77 | * caif_release_client - Release adaptation layer reference to client. | 77 | * caif_connect_req_to_link_param - Translate configuration parameters |
78 | * | 78 | * from socket format to internal format. |
79 | * @client_layer: Client layer. | ||
80 | * | ||
81 | * Releases a client/adaptation layer use of the caif stack. | ||
82 | * This function must be used after caif_disconnect_client to | ||
83 | * decrease the reference count of the service layer. | ||
84 | */ | ||
85 | void caif_release_client(struct cflayer *client_layer); | ||
86 | |||
87 | /** | ||
88 | * connect_req_to_link_param - Translate configuration parameters | ||
89 | * from socket format to internal format. | ||
90 | * @cnfg: Pointer to configuration handler | 79 | * @cnfg: Pointer to configuration handler |
91 | * @con_req: Configuration parameters supplied in function | 80 | * @con_req: Configuration parameters supplied in function |
92 | * caif_connect_client | 81 | * caif_connect_client |
@@ -94,14 +83,8 @@ void caif_release_client(struct cflayer *client_layer); | |||
94 | * setting up channels. | 83 | * setting up channels. |
95 | * | 84 | * |
96 | */ | 85 | */ |
97 | int connect_req_to_link_param(struct cfcnfg *cnfg, | 86 | int caif_connect_req_to_link_param(struct cfcnfg *cnfg, |
98 | struct caif_connect_request *con_req, | 87 | struct caif_connect_request *con_req, |
99 | struct cfctrl_link_param *channel_setup_param); | 88 | struct cfctrl_link_param *setup_param); |
100 | |||
101 | /** | ||
102 | * get_caif_conf() - Get the configuration handler. | ||
103 | */ | ||
104 | struct cfcnfg *get_caif_conf(void); | ||
105 | |||
106 | 89 | ||
107 | #endif /* CAIF_DEV_H_ */ | 90 | #endif /* CAIF_DEV_H_ */ |