Commit cbbd8a58 authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: rename external function in wl_cfg80211.c

Renamed external function getting rid of wl_ prefix. Removed unused
function from the API header file wl_cfg80211.h as it was not defined.
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarFranky Lin <frankyl@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 764a5e93
...@@ -88,7 +88,7 @@ static int brcmf_ops_sdio_probe(struct sdio_func *func, ...@@ -88,7 +88,7 @@ static int brcmf_ops_sdio_probe(struct sdio_func *func,
gInstance->func[func->num] = func; gInstance->func[func->num] = func;
if (func->num == 2) { if (func->num == 2) {
wl_cfg80211_sdio_func(func); brcmf_cfg80211_sdio_func(func);
sd_trace(("F2 found, calling brcmf_sdio_probe...\n")); sd_trace(("F2 found, calling brcmf_sdio_probe...\n"));
ret = brcmf_sdio_probe(&sdmmc_dev); ret = brcmf_sdio_probe(&sdmmc_dev);
} }
......
...@@ -1052,7 +1052,8 @@ static void brcmf_ethtool_get_drvinfo(struct net_device *net, ...@@ -1052,7 +1052,8 @@ static void brcmf_ethtool_get_drvinfo(struct net_device *net,
sprintf(info->driver, KBUILD_MODNAME); sprintf(info->driver, KBUILD_MODNAME);
sprintf(info->version, "%lu", drvr_priv->pub.drv_version); sprintf(info->version, "%lu", drvr_priv->pub.drv_version);
sprintf(info->fw_version, "%s", BCM4329_FW_NAME); sprintf(info->fw_version, "%s", BCM4329_FW_NAME);
sprintf(info->bus_info, "%s", dev_name(&wl_cfg80211_get_sdio_func()->dev)); sprintf(info->bus_info, "%s",
dev_name(&brcmf_cfg80211_get_sdio_func()->dev));
} }
struct ethtool_ops brcmf_ethtool_ops = { struct ethtool_ops brcmf_ethtool_ops = {
...@@ -1292,7 +1293,7 @@ static int brcmf_netdev_stop(struct net_device *net) ...@@ -1292,7 +1293,7 @@ static int brcmf_netdev_stop(struct net_device *net)
struct brcmf_info *drvr_priv = *(struct brcmf_info **) netdev_priv(net); struct brcmf_info *drvr_priv = *(struct brcmf_info **) netdev_priv(net);
DHD_TRACE(("%s: Enter\n", __func__)); DHD_TRACE(("%s: Enter\n", __func__));
wl_cfg80211_down(); brcmf_cfg80211_down();
if (drvr_priv->pub.up == 0) if (drvr_priv->pub.up == 0)
return 0; return 0;
...@@ -1338,7 +1339,7 @@ static int brcmf_netdev_open(struct net_device *net) ...@@ -1338,7 +1339,7 @@ static int brcmf_netdev_open(struct net_device *net)
/* Allow transmit calls */ /* Allow transmit calls */
netif_start_queue(net); netif_start_queue(net);
drvr_priv->pub.up = 1; drvr_priv->pub.up = 1;
if (unlikely(wl_cfg80211_up())) { if (unlikely(brcmf_cfg80211_up())) {
DHD_ERROR(("%s: failed to bring up cfg80211\n", DHD_ERROR(("%s: failed to bring up cfg80211\n",
__func__)); __func__));
return -1; return -1;
...@@ -1464,7 +1465,7 @@ struct brcmf_pub *brcmf_attach(struct brcmf_bus *bus, uint bus_hdrlen) ...@@ -1464,7 +1465,7 @@ struct brcmf_pub *brcmf_attach(struct brcmf_bus *bus, uint bus_hdrlen)
} }
/* Attach and link in the cfg80211 */ /* Attach and link in the cfg80211 */
if (unlikely(wl_cfg80211_attach(net, &drvr_priv->pub))) { if (unlikely(brcmf_cfg80211_attach(net, &drvr_priv->pub))) {
DHD_ERROR(("wl_cfg80211_attach failed\n")); DHD_ERROR(("wl_cfg80211_attach failed\n"));
goto fail; goto fail;
} }
...@@ -1700,7 +1701,7 @@ void brcmf_detach(struct brcmf_pub *drvr) ...@@ -1700,7 +1701,7 @@ void brcmf_detach(struct brcmf_pub *drvr)
if (drvr->prot) if (drvr->prot)
brcmf_proto_detach(drvr); brcmf_proto_detach(drvr);
wl_cfg80211_detach(); brcmf_cfg80211_detach();
/* && defined(DHD_GPL) */ /* && defined(DHD_GPL) */
free_netdev(ifp->net); free_netdev(ifp->net);
...@@ -1824,7 +1825,8 @@ static int brcmf_host_event(struct brcmf_info *drvr_priv, int *ifidx, void *pktd ...@@ -1824,7 +1825,8 @@ static int brcmf_host_event(struct brcmf_info *drvr_priv, int *ifidx, void *pktd
ASSERT(drvr_priv->iflist[*ifidx] != NULL); ASSERT(drvr_priv->iflist[*ifidx] != NULL);
ASSERT(drvr_priv->iflist[*ifidx]->net != NULL); ASSERT(drvr_priv->iflist[*ifidx]->net != NULL);
if (drvr_priv->iflist[*ifidx]->net) if (drvr_priv->iflist[*ifidx]->net)
wl_cfg80211_event(drvr_priv->iflist[*ifidx]->net, event, *data); brcmf_cfg80211_event(drvr_priv->iflist[*ifidx]->net,
event, *data);
return bcmerror; return bcmerror;
} }
......
...@@ -3440,7 +3440,7 @@ static void wl_deinit_priv(struct brcmf_cfg80211_priv *cfg_priv) ...@@ -3440,7 +3440,7 @@ static void wl_deinit_priv(struct brcmf_cfg80211_priv *cfg_priv)
brcmf_deinit_priv_mem(cfg_priv); brcmf_deinit_priv_mem(cfg_priv);
} }
s32 wl_cfg80211_attach(struct net_device *ndev, void *data) s32 brcmf_cfg80211_attach(struct net_device *ndev, void *data)
{ {
struct wireless_dev *wdev; struct wireless_dev *wdev;
struct brcmf_cfg80211_priv *cfg_priv; struct brcmf_cfg80211_priv *cfg_priv;
...@@ -3456,9 +3456,9 @@ s32 wl_cfg80211_attach(struct net_device *ndev, void *data) ...@@ -3456,9 +3456,9 @@ s32 wl_cfg80211_attach(struct net_device *ndev, void *data)
WL_ERR("wl_cfg80211_dev is invalid\n"); WL_ERR("wl_cfg80211_dev is invalid\n");
return -ENOMEM; return -ENOMEM;
} }
WL_INFO("func %p\n", wl_cfg80211_get_sdio_func()); WL_INFO("func %p\n", brcmf_cfg80211_get_sdio_func());
wdev = brcmf_alloc_wdev(sizeof(struct brcmf_cfg80211_iface), wdev = brcmf_alloc_wdev(sizeof(struct brcmf_cfg80211_iface),
&wl_cfg80211_get_sdio_func()->dev); &brcmf_cfg80211_get_sdio_func()->dev);
if (IS_ERR(wdev)) if (IS_ERR(wdev))
return -ENOMEM; return -ENOMEM;
...@@ -3485,7 +3485,7 @@ s32 wl_cfg80211_attach(struct net_device *ndev, void *data) ...@@ -3485,7 +3485,7 @@ s32 wl_cfg80211_attach(struct net_device *ndev, void *data)
return err; return err;
} }
void wl_cfg80211_detach(void) void brcmf_cfg80211_detach(void)
{ {
struct brcmf_cfg80211_priv *cfg_priv; struct brcmf_cfg80211_priv *cfg_priv;
...@@ -3536,7 +3536,7 @@ static s32 brcmf_event_handler(void *data) ...@@ -3536,7 +3536,7 @@ static s32 brcmf_event_handler(void *data)
} }
void void
wl_cfg80211_event(struct net_device *ndev, brcmf_cfg80211_event(struct net_device *ndev,
const struct brcmf_event_msg *e, void *data) const struct brcmf_event_msg *e, void *data)
{ {
u32 event_type = be32_to_cpu(e->event_type); u32 event_type = be32_to_cpu(e->event_type);
...@@ -3619,7 +3619,7 @@ static void brcmf_put_event(struct brcmf_cfg80211_event_q *e) ...@@ -3619,7 +3619,7 @@ static void brcmf_put_event(struct brcmf_cfg80211_event_q *e)
kfree(e); kfree(e);
} }
void wl_cfg80211_sdio_func(void *func) void brcmf_cfg80211_sdio_func(void *func)
{ {
cfg80211_sdio_func = (struct sdio_func *)func; cfg80211_sdio_func = (struct sdio_func *)func;
} }
...@@ -3629,7 +3629,7 @@ static void brcmf_clear_sdio_func(void) ...@@ -3629,7 +3629,7 @@ static void brcmf_clear_sdio_func(void)
cfg80211_sdio_func = NULL; cfg80211_sdio_func = NULL;
} }
struct sdio_func *wl_cfg80211_get_sdio_func(void) struct sdio_func *brcmf_cfg80211_get_sdio_func(void)
{ {
return cfg80211_sdio_func; return cfg80211_sdio_func;
} }
...@@ -3938,7 +3938,7 @@ static s32 __brcmf_cfg80211_down(struct brcmf_cfg80211_priv *cfg_priv) ...@@ -3938,7 +3938,7 @@ static s32 __brcmf_cfg80211_down(struct brcmf_cfg80211_priv *cfg_priv)
return 0; return 0;
} }
s32 wl_cfg80211_up(void) s32 brcmf_cfg80211_up(void)
{ {
struct brcmf_cfg80211_priv *cfg_priv; struct brcmf_cfg80211_priv *cfg_priv;
s32 err = 0; s32 err = 0;
...@@ -3951,7 +3951,7 @@ s32 wl_cfg80211_up(void) ...@@ -3951,7 +3951,7 @@ s32 wl_cfg80211_up(void)
return err; return err;
} }
s32 wl_cfg80211_down(void) s32 brcmf_cfg80211_down(void)
{ {
struct brcmf_cfg80211_priv *cfg_priv; struct brcmf_cfg80211_priv *cfg_priv;
s32 err = 0; s32 err = 0;
......
...@@ -343,15 +343,14 @@ static inline struct brcmf_bss_info *next_bss(struct brcmf_scan_results *list, ...@@ -343,15 +343,14 @@ static inline struct brcmf_bss_info *next_bss(struct brcmf_scan_results *list,
#define for_each_bss(list, bss, __i) \ #define for_each_bss(list, bss, __i) \
for (__i = 0; __i < list->count && __i < WL_AP_MAX; __i++, bss = next_bss(list, bss)) for (__i = 0; __i < list->count && __i < WL_AP_MAX; __i++, bss = next_bss(list, bss))
extern s32 wl_cfg80211_attach(struct net_device *ndev, void *data); extern s32 brcmf_cfg80211_attach(struct net_device *ndev, void *data);
extern void wl_cfg80211_detach(void); extern void brcmf_cfg80211_detach(void);
/* event handler from dongle */ /* event handler from dongle */
extern void wl_cfg80211_event(struct net_device *ndev, extern void brcmf_cfg80211_event(struct net_device *ndev,
const struct brcmf_event_msg *e, void *data); const struct brcmf_event_msg *e, void *data);
extern void wl_cfg80211_sdio_func(void *func); /* set sdio function info */ extern void brcmf_cfg80211_sdio_func(void *func); /* set sdio function info */
extern struct sdio_func *wl_cfg80211_get_sdio_func(void); extern struct sdio_func *brcmf_cfg80211_get_sdio_func(void);
extern s32 wl_cfg80211_up(void); /* dongle up */ extern s32 brcmf_cfg80211_up(void); /* dongle up */
extern s32 wl_cfg80211_down(void); /* dongle down */ extern s32 brcmf_cfg80211_down(void); /* dongle down */
extern void wl_cfg80211_dbg_level(u32 level); /* set dongle
debugging level */
#endif /* _wl_cfg80211_h_ */ #endif /* _wl_cfg80211_h_ */
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