aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/if_sdio.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-11-15 18:05:47 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:46 -0500
commit1007832103d016d1563fab71d4cf2b057a0bcceb (patch)
tree3b5080b01bee6e1f98cc9489382c534e963ac748 /drivers/net/wireless/libertas/if_sdio.c
parent9a62f73b1a3bbd35a6f84fcd6636e672b09981ec (diff)
libertas: move to uniform lbs_/LBS_ namespace
This patch unifies the namespace of variables, functions defines and structures. It does: - rename libertas_XXX to lbs_XXX - rename LIBERTAS_XXX to lbs_XXX - rename wlan_XXX to lbs_XXX - rename WLAN_XXX to LBS_XXX (but only those that were defined in libertas-local *.h files, e.g. not defines from net/ieee80211.h) While passing, I fixed some checkpatch.pl errors too. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/if_sdio.c')
-rw-r--r--drivers/net/wireless/libertas/if_sdio.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c
index 4f1efb108c28..0c762eea7a34 100644
--- a/drivers/net/wireless/libertas/if_sdio.c
+++ b/drivers/net/wireless/libertas/if_sdio.c
@@ -40,11 +40,11 @@
40#include "dev.h" 40#include "dev.h"
41#include "if_sdio.h" 41#include "if_sdio.h"
42 42
43static char *libertas_helper_name = NULL; 43static char *lbs_helper_name = NULL;
44module_param_named(helper_name, libertas_helper_name, charp, 0644); 44module_param_named(helper_name, lbs_helper_name, charp, 0644);
45 45
46static char *libertas_fw_name = NULL; 46static char *lbs_fw_name = NULL;
47module_param_named(fw_name, libertas_fw_name, charp, 0644); 47module_param_named(fw_name, lbs_fw_name, charp, 0644);
48 48
49static const struct sdio_device_id if_sdio_ids[] = { 49static const struct sdio_device_id if_sdio_ids[] = {
50 { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_LIBERTAS) }, 50 { SDIO_DEVICE(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_LIBERTAS) },
@@ -82,7 +82,7 @@ struct if_sdio_packet {
82 82
83struct if_sdio_card { 83struct if_sdio_card {
84 struct sdio_func *func; 84 struct sdio_func *func;
85 wlan_private *priv; 85 lbs_private *priv;
86 86
87 int model; 87 int model;
88 unsigned long ioport; 88 unsigned long ioport;
@@ -154,7 +154,7 @@ static int if_sdio_handle_cmd(struct if_sdio_card *card,
154 154
155 card->int_cause |= MRVDRV_CMD_UPLD_RDY; 155 card->int_cause |= MRVDRV_CMD_UPLD_RDY;
156 156
157 libertas_interrupt(card->priv->dev); 157 lbs_interrupt(card->priv->dev);
158 158
159 ret = 0; 159 ret = 0;
160 160
@@ -194,7 +194,7 @@ static int if_sdio_handle_data(struct if_sdio_card *card,
194 194
195 memcpy(data, buffer, size); 195 memcpy(data, buffer, size);
196 196
197 libertas_process_rxed_packet(card->priv, skb); 197 lbs_process_rxed_packet(card->priv, skb);
198 198
199 ret = 0; 199 ret = 0;
200 200
@@ -236,7 +236,7 @@ static int if_sdio_handle_event(struct if_sdio_card *card,
236 card->event = event; 236 card->event = event;
237 card->int_cause |= MRVDRV_CARDEVENT; 237 card->int_cause |= MRVDRV_CARDEVENT;
238 238
239 libertas_interrupt(card->priv->dev); 239 lbs_interrupt(card->priv->dev);
240 240
241 spin_unlock_irqrestore(&card->priv->adapter->driver_lock, flags); 241 spin_unlock_irqrestore(&card->priv->adapter->driver_lock, flags);
242 242
@@ -694,7 +694,7 @@ out:
694/* Libertas callbacks */ 694/* Libertas callbacks */
695/*******************************************************************/ 695/*******************************************************************/
696 696
697static int if_sdio_host_to_card(wlan_private *priv, u8 type, u8 *buf, u16 nb) 697static int if_sdio_host_to_card(lbs_private *priv, u8 type, u8 *buf, u16 nb)
698{ 698{
699 int ret; 699 int ret;
700 struct if_sdio_card *card; 700 struct if_sdio_card *card;
@@ -775,7 +775,7 @@ out:
775 return ret; 775 return ret;
776} 776}
777 777
778static int if_sdio_get_int_status(wlan_private *priv, u8 *ireg) 778static int if_sdio_get_int_status(lbs_private *priv, u8 *ireg)
779{ 779{
780 struct if_sdio_card *card; 780 struct if_sdio_card *card;
781 781
@@ -791,7 +791,7 @@ static int if_sdio_get_int_status(wlan_private *priv, u8 *ireg)
791 return 0; 791 return 0;
792} 792}
793 793
794static int if_sdio_read_event_cause(wlan_private *priv) 794static int if_sdio_read_event_cause(lbs_private *priv)
795{ 795{
796 struct if_sdio_card *card; 796 struct if_sdio_card *card;
797 797
@@ -836,7 +836,7 @@ static void if_sdio_interrupt(struct sdio_func *func)
836 */ 836 */
837 if (cause & IF_SDIO_H_INT_DNLD) { 837 if (cause & IF_SDIO_H_INT_DNLD) {
838 if ((card->priv->dnld_sent == DNLD_DATA_SENT) && 838 if ((card->priv->dnld_sent == DNLD_DATA_SENT) &&
839 (card->priv->adapter->connect_status == LIBERTAS_CONNECTED)) 839 (card->priv->adapter->connect_status == LBS_CONNECTED))
840 netif_wake_queue(card->priv->dev); 840 netif_wake_queue(card->priv->dev);
841 card->priv->dnld_sent = DNLD_RES_RECEIVED; 841 card->priv->dnld_sent = DNLD_RES_RECEIVED;
842 } 842 }
@@ -857,7 +857,7 @@ static int if_sdio_probe(struct sdio_func *func,
857 const struct sdio_device_id *id) 857 const struct sdio_device_id *id)
858{ 858{
859 struct if_sdio_card *card; 859 struct if_sdio_card *card;
860 wlan_private *priv; 860 lbs_private *priv;
861 int ret, i; 861 int ret, i;
862 unsigned int model; 862 unsigned int model;
863 struct if_sdio_packet *packet; 863 struct if_sdio_packet *packet;
@@ -905,15 +905,15 @@ static int if_sdio_probe(struct sdio_func *func,
905 card->helper = if_sdio_models[i].helper; 905 card->helper = if_sdio_models[i].helper;
906 card->firmware = if_sdio_models[i].firmware; 906 card->firmware = if_sdio_models[i].firmware;
907 907
908 if (libertas_helper_name) { 908 if (lbs_helper_name) {
909 lbs_deb_sdio("overriding helper firmware: %s\n", 909 lbs_deb_sdio("overriding helper firmware: %s\n",
910 libertas_helper_name); 910 lbs_helper_name);
911 card->helper = libertas_helper_name; 911 card->helper = lbs_helper_name;
912 } 912 }
913 913
914 if (libertas_fw_name) { 914 if (lbs_fw_name) {
915 lbs_deb_sdio("overriding firmware: %s\n", libertas_fw_name); 915 lbs_deb_sdio("overriding firmware: %s\n", lbs_fw_name);
916 card->firmware = libertas_fw_name; 916 card->firmware = lbs_fw_name;
917 } 917 }
918 918
919 sdio_claim_host(func); 919 sdio_claim_host(func);
@@ -951,7 +951,7 @@ static int if_sdio_probe(struct sdio_func *func,
951 if (ret) 951 if (ret)
952 goto reclaim; 952 goto reclaim;
953 953
954 priv = libertas_add_card(card, &func->dev); 954 priv = lbs_add_card(card, &func->dev);
955 if (!priv) { 955 if (!priv) {
956 ret = -ENOMEM; 956 ret = -ENOMEM;
957 goto reclaim; 957 goto reclaim;
@@ -975,7 +975,7 @@ static int if_sdio_probe(struct sdio_func *func,
975 if (ret) 975 if (ret)
976 goto reclaim; 976 goto reclaim;
977 977
978 ret = libertas_start_card(priv); 978 ret = lbs_start_card(priv);
979 if (ret) 979 if (ret)
980 goto err_activate_card; 980 goto err_activate_card;
981 981
@@ -1020,8 +1020,8 @@ static void if_sdio_remove(struct sdio_func *func)
1020 card->priv->adapter->surpriseremoved = 1; 1020 card->priv->adapter->surpriseremoved = 1;
1021 1021
1022 lbs_deb_sdio("call remove card\n"); 1022 lbs_deb_sdio("call remove card\n");
1023 libertas_stop_card(card->priv); 1023 lbs_stop_card(card->priv);
1024 libertas_remove_card(card->priv); 1024 lbs_remove_card(card->priv);
1025 1025
1026 flush_scheduled_work(); 1026 flush_scheduled_work();
1027 1027