diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-11-15 18:05:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:46 -0500 |
commit | 1007832103d016d1563fab71d4cf2b057a0bcceb (patch) | |
tree | 3b5080b01bee6e1f98cc9489382c534e963ac748 /drivers/net/wireless/libertas/if_cs.c | |
parent | 9a62f73b1a3bbd35a6f84fcd6636e672b09981ec (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_cs.c')
-rw-r--r-- | drivers/net/wireless/libertas/if_cs.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/net/wireless/libertas/if_cs.c b/drivers/net/wireless/libertas/if_cs.c index d383c0f9fe3e..b0b95cf2e7c9 100644 --- a/drivers/net/wireless/libertas/if_cs.c +++ b/drivers/net/wireless/libertas/if_cs.c | |||
@@ -57,7 +57,7 @@ MODULE_LICENSE("GPL"); | |||
57 | 57 | ||
58 | struct if_cs_card { | 58 | struct if_cs_card { |
59 | struct pcmcia_device *p_dev; | 59 | struct pcmcia_device *p_dev; |
60 | wlan_private *priv; | 60 | lbs_private *priv; |
61 | void __iomem *iobase; | 61 | void __iomem *iobase; |
62 | }; | 62 | }; |
63 | 63 | ||
@@ -263,7 +263,7 @@ static irqreturn_t if_cs_interrupt(int irq, void *data) | |||
263 | if (!card->priv->adapter->cur_cmd) | 263 | if (!card->priv->adapter->cur_cmd) |
264 | wake_up_interruptible(&card->priv->waitq); | 264 | wake_up_interruptible(&card->priv->waitq); |
265 | 265 | ||
266 | if (card->priv->adapter->connect_status == LIBERTAS_CONNECTED) | 266 | if (card->priv->adapter->connect_status == LBS_CONNECTED) |
267 | netif_wake_queue(card->priv->dev); | 267 | netif_wake_queue(card->priv->dev); |
268 | } | 268 | } |
269 | 269 | ||
@@ -271,7 +271,7 @@ static irqreturn_t if_cs_interrupt(int irq, void *data) | |||
271 | if_cs_write16(card, IF_CS_C_INT_CAUSE, int_cause & IF_CS_C_IC_MASK); | 271 | if_cs_write16(card, IF_CS_C_INT_CAUSE, int_cause & IF_CS_C_IC_MASK); |
272 | } | 272 | } |
273 | 273 | ||
274 | libertas_interrupt(card->priv->dev); | 274 | lbs_interrupt(card->priv->dev); |
275 | 275 | ||
276 | return IRQ_HANDLED; | 276 | return IRQ_HANDLED; |
277 | } | 277 | } |
@@ -286,7 +286,7 @@ static irqreturn_t if_cs_interrupt(int irq, void *data) | |||
286 | /* | 286 | /* |
287 | * Called from if_cs_host_to_card to send a command to the hardware | 287 | * Called from if_cs_host_to_card to send a command to the hardware |
288 | */ | 288 | */ |
289 | static int if_cs_send_cmd(wlan_private *priv, u8 *buf, u16 nb) | 289 | static int if_cs_send_cmd(lbs_private *priv, u8 *buf, u16 nb) |
290 | { | 290 | { |
291 | struct if_cs_card *card = (struct if_cs_card *)priv->card; | 291 | struct if_cs_card *card = (struct if_cs_card *)priv->card; |
292 | int ret = -1; | 292 | int ret = -1; |
@@ -331,7 +331,7 @@ done: | |||
331 | /* | 331 | /* |
332 | * Called from if_cs_host_to_card to send a data to the hardware | 332 | * Called from if_cs_host_to_card to send a data to the hardware |
333 | */ | 333 | */ |
334 | static void if_cs_send_data(wlan_private *priv, u8 *buf, u16 nb) | 334 | static void if_cs_send_data(lbs_private *priv, u8 *buf, u16 nb) |
335 | { | 335 | { |
336 | struct if_cs_card *card = (struct if_cs_card *)priv->card; | 336 | struct if_cs_card *card = (struct if_cs_card *)priv->card; |
337 | 337 | ||
@@ -354,7 +354,7 @@ static void if_cs_send_data(wlan_private *priv, u8 *buf, u16 nb) | |||
354 | /* | 354 | /* |
355 | * Get the command result out of the card. | 355 | * Get the command result out of the card. |
356 | */ | 356 | */ |
357 | static int if_cs_receive_cmdres(wlan_private *priv, u8* data, u32 *len) | 357 | static int if_cs_receive_cmdres(lbs_private *priv, u8 *data, u32 *len) |
358 | { | 358 | { |
359 | int ret = -1; | 359 | int ret = -1; |
360 | u16 val; | 360 | u16 val; |
@@ -386,7 +386,7 @@ out: | |||
386 | } | 386 | } |
387 | 387 | ||
388 | 388 | ||
389 | static struct sk_buff *if_cs_receive_data(wlan_private *priv) | 389 | static struct sk_buff *if_cs_receive_data(lbs_private *priv) |
390 | { | 390 | { |
391 | struct sk_buff *skb = NULL; | 391 | struct sk_buff *skb = NULL; |
392 | u16 len; | 392 | u16 len; |
@@ -616,7 +616,7 @@ done: | |||
616 | /********************************************************************/ | 616 | /********************************************************************/ |
617 | 617 | ||
618 | /* Send commands or data packets to the card */ | 618 | /* Send commands or data packets to the card */ |
619 | static int if_cs_host_to_card(wlan_private *priv, u8 type, u8 *buf, u16 nb) | 619 | static int if_cs_host_to_card(lbs_private *priv, u8 type, u8 *buf, u16 nb) |
620 | { | 620 | { |
621 | int ret = -1; | 621 | int ret = -1; |
622 | 622 | ||
@@ -641,10 +641,10 @@ static int if_cs_host_to_card(wlan_private *priv, u8 type, u8 *buf, u16 nb) | |||
641 | } | 641 | } |
642 | 642 | ||
643 | 643 | ||
644 | static int if_cs_get_int_status(wlan_private *priv, u8 *ireg) | 644 | static int if_cs_get_int_status(lbs_private *priv, u8 *ireg) |
645 | { | 645 | { |
646 | struct if_cs_card *card = (struct if_cs_card *)priv->card; | 646 | struct if_cs_card *card = (struct if_cs_card *)priv->card; |
647 | //wlan_adapter *adapter = priv->adapter; | 647 | /* lbs_adapter *adapter = priv->adapter; */ |
648 | int ret = 0; | 648 | int ret = 0; |
649 | u16 int_cause; | 649 | u16 int_cause; |
650 | u8 *cmdbuf; | 650 | u8 *cmdbuf; |
@@ -668,7 +668,7 @@ sbi_get_int_status_exit: | |||
668 | /* is there a data packet for us? */ | 668 | /* is there a data packet for us? */ |
669 | if (*ireg & IF_CS_C_S_RX_UPLD_RDY) { | 669 | if (*ireg & IF_CS_C_S_RX_UPLD_RDY) { |
670 | struct sk_buff *skb = if_cs_receive_data(priv); | 670 | struct sk_buff *skb = if_cs_receive_data(priv); |
671 | libertas_process_rxed_packet(priv, skb); | 671 | lbs_process_rxed_packet(priv, skb); |
672 | *ireg &= ~IF_CS_C_S_RX_UPLD_RDY; | 672 | *ireg &= ~IF_CS_C_S_RX_UPLD_RDY; |
673 | } | 673 | } |
674 | 674 | ||
@@ -698,7 +698,7 @@ out: | |||
698 | } | 698 | } |
699 | 699 | ||
700 | 700 | ||
701 | static int if_cs_read_event_cause(wlan_private *priv) | 701 | static int if_cs_read_event_cause(lbs_private *priv) |
702 | { | 702 | { |
703 | lbs_deb_enter(LBS_DEB_CS); | 703 | lbs_deb_enter(LBS_DEB_CS); |
704 | 704 | ||
@@ -746,7 +746,7 @@ static void if_cs_release(struct pcmcia_device *p_dev) | |||
746 | static int if_cs_probe(struct pcmcia_device *p_dev) | 746 | static int if_cs_probe(struct pcmcia_device *p_dev) |
747 | { | 747 | { |
748 | int ret = -ENOMEM; | 748 | int ret = -ENOMEM; |
749 | wlan_private *priv; | 749 | lbs_private *priv; |
750 | struct if_cs_card *card; | 750 | struct if_cs_card *card; |
751 | /* CIS parsing */ | 751 | /* CIS parsing */ |
752 | tuple_t tuple; | 752 | tuple_t tuple; |
@@ -856,7 +856,7 @@ static int if_cs_probe(struct pcmcia_device *p_dev) | |||
856 | goto out2; | 856 | goto out2; |
857 | 857 | ||
858 | /* Make this card known to the libertas driver */ | 858 | /* Make this card known to the libertas driver */ |
859 | priv = libertas_add_card(card, &p_dev->dev); | 859 | priv = lbs_add_card(card, &p_dev->dev); |
860 | if (!priv) { | 860 | if (!priv) { |
861 | ret = -ENOMEM; | 861 | ret = -ENOMEM; |
862 | goto out2; | 862 | goto out2; |
@@ -885,7 +885,7 @@ static int if_cs_probe(struct pcmcia_device *p_dev) | |||
885 | if_cs_enable_ints(card); | 885 | if_cs_enable_ints(card); |
886 | 886 | ||
887 | /* And finally bring the card up */ | 887 | /* And finally bring the card up */ |
888 | if (libertas_start_card(priv) != 0) { | 888 | if (lbs_start_card(priv) != 0) { |
889 | lbs_pr_err("could not activate card\n"); | 889 | lbs_pr_err("could not activate card\n"); |
890 | goto out3; | 890 | goto out3; |
891 | } | 891 | } |
@@ -894,7 +894,7 @@ static int if_cs_probe(struct pcmcia_device *p_dev) | |||
894 | goto out; | 894 | goto out; |
895 | 895 | ||
896 | out3: | 896 | out3: |
897 | libertas_remove_card(priv); | 897 | lbs_remove_card(priv); |
898 | out2: | 898 | out2: |
899 | ioport_unmap(card->iobase); | 899 | ioport_unmap(card->iobase); |
900 | out1: | 900 | out1: |
@@ -917,8 +917,8 @@ static void if_cs_detach(struct pcmcia_device *p_dev) | |||
917 | 917 | ||
918 | lbs_deb_enter(LBS_DEB_CS); | 918 | lbs_deb_enter(LBS_DEB_CS); |
919 | 919 | ||
920 | libertas_stop_card(card->priv); | 920 | lbs_stop_card(card->priv); |
921 | libertas_remove_card(card->priv); | 921 | lbs_remove_card(card->priv); |
922 | if_cs_disable_ints(card); | 922 | if_cs_disable_ints(card); |
923 | if_cs_release(p_dev); | 923 | if_cs_release(p_dev); |
924 | kfree(card); | 924 | kfree(card); |
@@ -939,7 +939,7 @@ static struct pcmcia_device_id if_cs_ids[] = { | |||
939 | MODULE_DEVICE_TABLE(pcmcia, if_cs_ids); | 939 | MODULE_DEVICE_TABLE(pcmcia, if_cs_ids); |
940 | 940 | ||
941 | 941 | ||
942 | static struct pcmcia_driver libertas_driver = { | 942 | static struct pcmcia_driver lbs_driver = { |
943 | .owner = THIS_MODULE, | 943 | .owner = THIS_MODULE, |
944 | .drv = { | 944 | .drv = { |
945 | .name = DRV_NAME, | 945 | .name = DRV_NAME, |
@@ -955,7 +955,7 @@ static int __init if_cs_init(void) | |||
955 | int ret; | 955 | int ret; |
956 | 956 | ||
957 | lbs_deb_enter(LBS_DEB_CS); | 957 | lbs_deb_enter(LBS_DEB_CS); |
958 | ret = pcmcia_register_driver(&libertas_driver); | 958 | ret = pcmcia_register_driver(&lbs_driver); |
959 | lbs_deb_leave(LBS_DEB_CS); | 959 | lbs_deb_leave(LBS_DEB_CS); |
960 | return ret; | 960 | return ret; |
961 | } | 961 | } |
@@ -964,7 +964,7 @@ static int __init if_cs_init(void) | |||
964 | static void __exit if_cs_exit(void) | 964 | static void __exit if_cs_exit(void) |
965 | { | 965 | { |
966 | lbs_deb_enter(LBS_DEB_CS); | 966 | lbs_deb_enter(LBS_DEB_CS); |
967 | pcmcia_unregister_driver(&libertas_driver); | 967 | pcmcia_unregister_driver(&lbs_driver); |
968 | lbs_deb_leave(LBS_DEB_CS); | 968 | lbs_deb_leave(LBS_DEB_CS); |
969 | } | 969 | } |
970 | 970 | ||