aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHolger Schurig <h.schurig@mn-solutions.de>2007-12-05 11:58:06 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:06:03 -0500
commit0d61d04210b617963c202a3c4dcbcd26a024d5d3 (patch)
tree4eb105f000ea9b3104f16cf30ee886b413b16e45 /drivers
parentc68b3bbdb596b5f82f1f0731f6fcb210735aff39 (diff)
libertas: make more functions static
These functions were used in the old debugfs code for events, but as this code is now gone, there's no need to export those functions. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/libertas/cmd.c9
-rw-r--r--drivers/net/wireless/libertas/decl.h7
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index 43dde7eec758..54ef990a46cc 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -13,6 +13,11 @@
13#include "wext.h" 13#include "wext.h"
14 14
15static void cleanup_cmdnode(struct cmd_ctrl_node *ptempnode); 15static void cleanup_cmdnode(struct cmd_ctrl_node *ptempnode);
16struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv);
17void lbs_set_cmd_ctrl_node(struct lbs_private *priv,
18 struct cmd_ctrl_node *ptempnode,
19 u16 wait_option, void *pdata_buf);
20
16 21
17static u16 commands_allowed_in_ps[] = { 22static u16 commands_allowed_in_ps[] = {
18 CMD_802_11_RSSI, 23 CMD_802_11_RSSI,
@@ -1220,7 +1225,7 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,
1220 goto done; 1225 goto done;
1221 } 1226 }
1222 1227
1223 cmdnode = lbs_get_free_cmd_ctrl_node(priv); 1228 cmdnode = lbs_get_cmd_ctrl_node(priv);
1224 1229
1225 if (cmdnode == NULL) { 1230 if (cmdnode == NULL) {
1226 lbs_deb_host("PREP_CMD: cmdnode is NULL\n"); 1231 lbs_deb_host("PREP_CMD: cmdnode is NULL\n");
@@ -1623,7 +1628,7 @@ done:
1623 * @param priv A pointer to struct lbs_private structure 1628 * @param priv A pointer to struct lbs_private structure
1624 * @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or NULL 1629 * @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or NULL
1625 */ 1630 */
1626struct cmd_ctrl_node *lbs_get_free_cmd_ctrl_node(struct lbs_private *priv) 1631struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv)
1627{ 1632{
1628 struct cmd_ctrl_node *tempnode; 1633 struct cmd_ctrl_node *tempnode;
1629 struct lbs_adapter *adapter = priv->adapter; 1634 struct lbs_adapter *adapter = priv->adapter;
diff --git a/drivers/net/wireless/libertas/decl.h b/drivers/net/wireless/libertas/decl.h
index 201ec60f1dc5..0856cc96f513 100644
--- a/drivers/net/wireless/libertas/decl.h
+++ b/drivers/net/wireless/libertas/decl.h
@@ -15,18 +15,13 @@ struct lbs_private;
15struct lbs_adapter; 15struct lbs_adapter;
16struct sk_buff; 16struct sk_buff;
17struct net_device; 17struct net_device;
18struct cmd_ctrl_node;
18 19
19int lbs_set_mac_packet_filter(struct lbs_private *priv); 20int lbs_set_mac_packet_filter(struct lbs_private *priv);
20 21
21void lbs_send_tx_feedback(struct lbs_private *priv); 22void lbs_send_tx_feedback(struct lbs_private *priv);
22 23
23int lbs_free_cmd_buffer(struct lbs_private *priv); 24int lbs_free_cmd_buffer(struct lbs_private *priv);
24struct cmd_ctrl_node;
25struct cmd_ctrl_node *lbs_get_free_cmd_ctrl_node(struct lbs_private *priv);
26
27void lbs_set_cmd_ctrl_node(struct lbs_private *priv,
28 struct cmd_ctrl_node *ptempnode,
29 u16 wait_option, void *pdata_buf);
30 25
31int lbs_prepare_and_send_command(struct lbs_private *priv, 26int lbs_prepare_and_send_command(struct lbs_private *priv,
32 u16 cmd_no, 27 u16 cmd_no,