Commit 2fd6cfe3 authored by David Woodhouse's avatar David Woodhouse Committed by David S. Miller

libertas: make some more functions static

sparse was getting on my tits.
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cb182a60
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#include "cmd.h" #include "cmd.h"
static void cleanup_cmdnode(struct cmd_ctrl_node *ptempnode); static void cleanup_cmdnode(struct cmd_ctrl_node *ptempnode);
struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv); static struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv);
void lbs_set_cmd_ctrl_node(struct lbs_private *priv, static void lbs_set_cmd_ctrl_node(struct lbs_private *priv,
struct cmd_ctrl_node *ptempnode, struct cmd_ctrl_node *ptempnode,
u16 wait_option, void *pdata_buf); u16 wait_option, void *pdata_buf);
...@@ -1716,7 +1716,7 @@ int lbs_free_cmd_buffer(struct lbs_private *priv) ...@@ -1716,7 +1716,7 @@ int lbs_free_cmd_buffer(struct lbs_private *priv)
* @param priv A pointer to struct lbs_private structure * @param priv A pointer to struct lbs_private structure
* @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or NULL * @return cmd_ctrl_node A pointer to cmd_ctrl_node structure or NULL
*/ */
struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv) static struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv)
{ {
struct cmd_ctrl_node *tempnode; struct cmd_ctrl_node *tempnode;
unsigned long flags; unsigned long flags;
...@@ -1780,7 +1780,7 @@ static void cleanup_cmdnode(struct cmd_ctrl_node *cmdnode) ...@@ -1780,7 +1780,7 @@ static void cleanup_cmdnode(struct cmd_ctrl_node *cmdnode)
* @param pdata_buf A pointer to informaion buffer * @param pdata_buf A pointer to informaion buffer
* @return 0 or -1 * @return 0 or -1
*/ */
void lbs_set_cmd_ctrl_node(struct lbs_private *priv, static void lbs_set_cmd_ctrl_node(struct lbs_private *priv,
struct cmd_ctrl_node *ptempnode, struct cmd_ctrl_node *ptempnode,
u16 wait_option, void *pdata_buf) u16 wait_option, void *pdata_buf)
{ {
......
...@@ -113,7 +113,7 @@ static void if_usb_set_boot2_ver(struct lbs_private *priv) ...@@ -113,7 +113,7 @@ static void if_usb_set_boot2_ver(struct lbs_private *priv)
lbs_deb_usb("Setting boot2 version failed\n"); lbs_deb_usb("Setting boot2 version failed\n");
} }
void if_usb_fw_timeo(unsigned long priv) static void if_usb_fw_timeo(unsigned long priv)
{ {
struct usb_card_rec *cardp = (void *)priv; struct usb_card_rec *cardp = (void *)priv;
......
...@@ -252,8 +252,8 @@ static ssize_t lbs_anycast_set(struct device *dev, ...@@ -252,8 +252,8 @@ static ssize_t lbs_anycast_set(struct device *dev,
return strlen(buf); return strlen(buf);
} }
int lbs_add_rtap(struct lbs_private *priv); static int lbs_add_rtap(struct lbs_private *priv);
void lbs_remove_rtap(struct lbs_private *priv); static void lbs_remove_rtap(struct lbs_private *priv);
/** /**
* Get function for sysfs attribute rtap * Get function for sysfs attribute rtap
...@@ -1423,7 +1423,7 @@ static struct net_device_stats *lbs_rtap_get_stats(struct net_device *dev) ...@@ -1423,7 +1423,7 @@ static struct net_device_stats *lbs_rtap_get_stats(struct net_device *dev)
} }
void lbs_remove_rtap(struct lbs_private *priv) static void lbs_remove_rtap(struct lbs_private *priv)
{ {
if (priv->rtap_net_dev == NULL) if (priv->rtap_net_dev == NULL)
return; return;
...@@ -1432,7 +1432,7 @@ void lbs_remove_rtap(struct lbs_private *priv) ...@@ -1432,7 +1432,7 @@ void lbs_remove_rtap(struct lbs_private *priv)
priv->rtap_net_dev = NULL; priv->rtap_net_dev = NULL;
} }
int lbs_add_rtap(struct lbs_private *priv) static int lbs_add_rtap(struct lbs_private *priv)
{ {
int rc = 0; int rc = 0;
struct net_device *rtap_dev; struct net_device *rtap_dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment