aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-11 17:44:10 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:06:51 -0500
commit2fd6cfe307557f3022b47288db3dc094c076e539 (patch)
tree3c446e7276c312522e037830243893b9b4c22324 /drivers/net
parentcb182a602802b36ff992afe238e1a3eafc0956b2 (diff)
libertas: make some more functions static
sparse was getting on my tits. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/libertas/cmd.c12
-rw-r--r--drivers/net/wireless/libertas/if_usb.c2
-rw-r--r--drivers/net/wireless/libertas/main.c8
3 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index 0f07c2ab9cac..2228feccb249 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -14,8 +14,8 @@
14#include "cmd.h" 14#include "cmd.h"
15 15
16static void cleanup_cmdnode(struct cmd_ctrl_node *ptempnode); 16static void cleanup_cmdnode(struct cmd_ctrl_node *ptempnode);
17struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv); 17static struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv);
18void lbs_set_cmd_ctrl_node(struct lbs_private *priv, 18static void lbs_set_cmd_ctrl_node(struct lbs_private *priv,
19 struct cmd_ctrl_node *ptempnode, 19 struct cmd_ctrl_node *ptempnode,
20 u16 wait_option, void *pdata_buf); 20 u16 wait_option, void *pdata_buf);
21 21
@@ -1716,7 +1716,7 @@ done:
1716 * @param priv A pointer to struct lbs_private structure 1716 * @param priv A pointer to struct lbs_private structure
1717 * @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or NULL 1717 * @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or NULL
1718 */ 1718 */
1719struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv) 1719static struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv)
1720{ 1720{
1721 struct cmd_ctrl_node *tempnode; 1721 struct cmd_ctrl_node *tempnode;
1722 unsigned long flags; 1722 unsigned long flags;
@@ -1780,9 +1780,9 @@ static void cleanup_cmdnode(struct cmd_ctrl_node *cmdnode)
1780 * @param pdata_buf A pointer to informaion buffer 1780 * @param pdata_buf A pointer to informaion buffer
1781 * @return 0 or -1 1781 * @return 0 or -1
1782 */ 1782 */
1783void lbs_set_cmd_ctrl_node(struct lbs_private *priv, 1783static void lbs_set_cmd_ctrl_node(struct lbs_private *priv,
1784 struct cmd_ctrl_node *ptempnode, 1784 struct cmd_ctrl_node *ptempnode,
1785 u16 wait_option, void *pdata_buf) 1785 u16 wait_option, void *pdata_buf)
1786{ 1786{
1787 lbs_deb_enter(LBS_DEB_HOST); 1787 lbs_deb_enter(LBS_DEB_HOST);
1788 1788
diff --git a/drivers/net/wireless/libertas/if_usb.c b/drivers/net/wireless/libertas/if_usb.c
index a0866efb9647..7c57ff44ad01 100644
--- a/drivers/net/wireless/libertas/if_usb.c
+++ b/drivers/net/wireless/libertas/if_usb.c
@@ -113,7 +113,7 @@ static void if_usb_set_boot2_ver(struct lbs_private *priv)
113 lbs_deb_usb("Setting boot2 version failed\n"); 113 lbs_deb_usb("Setting boot2 version failed\n");
114} 114}
115 115
116void if_usb_fw_timeo(unsigned long priv) 116static void if_usb_fw_timeo(unsigned long priv)
117{ 117{
118 struct usb_card_rec *cardp = (void *)priv; 118 struct usb_card_rec *cardp = (void *)priv;
119 119
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 2fe7ad0f8327..c51d3af131fd 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -252,8 +252,8 @@ static ssize_t lbs_anycast_set(struct device *dev,
252 return strlen(buf); 252 return strlen(buf);
253} 253}
254 254
255int lbs_add_rtap(struct lbs_private *priv); 255static int lbs_add_rtap(struct lbs_private *priv);
256void lbs_remove_rtap(struct lbs_private *priv); 256static void lbs_remove_rtap(struct lbs_private *priv);
257 257
258/** 258/**
259 * Get function for sysfs attribute rtap 259 * Get function for sysfs attribute rtap
@@ -1423,7 +1423,7 @@ static struct net_device_stats *lbs_rtap_get_stats(struct net_device *dev)
1423} 1423}
1424 1424
1425 1425
1426void lbs_remove_rtap(struct lbs_private *priv) 1426static void lbs_remove_rtap(struct lbs_private *priv)
1427{ 1427{
1428 if (priv->rtap_net_dev == NULL) 1428 if (priv->rtap_net_dev == NULL)
1429 return; 1429 return;
@@ -1432,7 +1432,7 @@ void lbs_remove_rtap(struct lbs_private *priv)
1432 priv->rtap_net_dev = NULL; 1432 priv->rtap_net_dev = NULL;
1433} 1433}
1434 1434
1435int lbs_add_rtap(struct lbs_private *priv) 1435static int lbs_add_rtap(struct lbs_private *priv)
1436{ 1436{
1437 int rc = 0; 1437 int rc = 0;
1438 struct net_device *rtap_dev; 1438 struct net_device *rtap_dev;