aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/orinoco/orinoco_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/orinoco/orinoco_usb.c')
-rw-r--r--drivers/net/wireless/orinoco/orinoco_usb.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
index b9aedf18a046..811e87f8a349 100644
--- a/drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/drivers/net/wireless/orinoco/orinoco_usb.c
@@ -199,7 +199,7 @@ MODULE_FIRMWARE("orinoco_ezusb_fw");
199#define EZUSB_FRAME_DATA 1 199#define EZUSB_FRAME_DATA 1
200#define EZUSB_FRAME_CONTROL 2 200#define EZUSB_FRAME_CONTROL 2
201 201
202#define DEF_TIMEOUT (3*HZ) 202#define DEF_TIMEOUT (3 * HZ)
203 203
204#define BULK_BUF_SIZE 2048 204#define BULK_BUF_SIZE 2048
205 205
@@ -959,7 +959,7 @@ static int ezusb_access_ltv(struct ezusb_priv *upriv,
959 return retval; 959 return retval;
960} 960}
961 961
962static int ezusb_write_ltv(hermes_t *hw, int bap, u16 rid, 962static int ezusb_write_ltv(struct hermes *hw, int bap, u16 rid,
963 u16 length, const void *data) 963 u16 length, const void *data)
964{ 964{
965 struct ezusb_priv *upriv = hw->priv; 965 struct ezusb_priv *upriv = hw->priv;
@@ -989,7 +989,7 @@ static int ezusb_write_ltv(hermes_t *hw, int bap, u16 rid,
989 NULL, 0, NULL); 989 NULL, 0, NULL);
990} 990}
991 991
992static int ezusb_read_ltv(hermes_t *hw, int bap, u16 rid, 992static int ezusb_read_ltv(struct hermes *hw, int bap, u16 rid,
993 unsigned bufsize, u16 *length, void *buf) 993 unsigned bufsize, u16 *length, void *buf)
994{ 994{
995 struct ezusb_priv *upriv = hw->priv; 995 struct ezusb_priv *upriv = hw->priv;
@@ -1006,7 +1006,7 @@ static int ezusb_read_ltv(hermes_t *hw, int bap, u16 rid,
1006 buf, bufsize, length); 1006 buf, bufsize, length);
1007} 1007}
1008 1008
1009static int ezusb_doicmd_wait(hermes_t *hw, u16 cmd, u16 parm0, u16 parm1, 1009static int ezusb_doicmd_wait(struct hermes *hw, u16 cmd, u16 parm0, u16 parm1,
1010 u16 parm2, struct hermes_response *resp) 1010 u16 parm2, struct hermes_response *resp)
1011{ 1011{
1012 struct ezusb_priv *upriv = hw->priv; 1012 struct ezusb_priv *upriv = hw->priv;
@@ -1028,7 +1028,7 @@ static int ezusb_doicmd_wait(hermes_t *hw, u16 cmd, u16 parm0, u16 parm1,
1028 EZUSB_FRAME_CONTROL, NULL, 0, NULL); 1028 EZUSB_FRAME_CONTROL, NULL, 0, NULL);
1029} 1029}
1030 1030
1031static int ezusb_docmd_wait(hermes_t *hw, u16 cmd, u16 parm0, 1031static int ezusb_docmd_wait(struct hermes *hw, u16 cmd, u16 parm0,
1032 struct hermes_response *resp) 1032 struct hermes_response *resp)
1033{ 1033{
1034 struct ezusb_priv *upriv = hw->priv; 1034 struct ezusb_priv *upriv = hw->priv;
@@ -1196,7 +1196,7 @@ static netdev_tx_t ezusb_xmit(struct sk_buff *skb, struct net_device *dev)
1196 struct orinoco_private *priv = ndev_priv(dev); 1196 struct orinoco_private *priv = ndev_priv(dev);
1197 struct net_device_stats *stats = &priv->stats; 1197 struct net_device_stats *stats = &priv->stats;
1198 struct ezusb_priv *upriv = priv->card; 1198 struct ezusb_priv *upriv = priv->card;
1199 u8 mic[MICHAEL_MIC_LEN+1]; 1199 u8 mic[MICHAEL_MIC_LEN + 1];
1200 int err = 0; 1200 int err = 0;
1201 int tx_control; 1201 int tx_control;
1202 unsigned long flags; 1202 unsigned long flags;
@@ -1356,7 +1356,7 @@ static int ezusb_hard_reset(struct orinoco_private *priv)
1356} 1356}
1357 1357
1358 1358
1359static int ezusb_init(hermes_t *hw) 1359static int ezusb_init(struct hermes *hw)
1360{ 1360{
1361 struct ezusb_priv *upriv = hw->priv; 1361 struct ezusb_priv *upriv = hw->priv;
1362 int retval; 1362 int retval;
@@ -1438,7 +1438,7 @@ static void ezusb_bulk_in_callback(struct urb *urb)
1438 } else if (upriv->dev) { 1438 } else if (upriv->dev) {
1439 struct net_device *dev = upriv->dev; 1439 struct net_device *dev = upriv->dev;
1440 struct orinoco_private *priv = ndev_priv(dev); 1440 struct orinoco_private *priv = ndev_priv(dev);
1441 hermes_t *hw = &priv->hw; 1441 struct hermes *hw = &priv->hw;
1442 1442
1443 if (hermes_rid == EZUSB_RID_RX) { 1443 if (hermes_rid == EZUSB_RID_RX) {
1444 __orinoco_ev_rx(dev, hw); 1444 __orinoco_ev_rx(dev, hw);
@@ -1575,7 +1575,7 @@ static int ezusb_probe(struct usb_interface *interface,
1575{ 1575{
1576 struct usb_device *udev = interface_to_usbdev(interface); 1576 struct usb_device *udev = interface_to_usbdev(interface);
1577 struct orinoco_private *priv; 1577 struct orinoco_private *priv;
1578 hermes_t *hw; 1578 struct hermes *hw;
1579 struct ezusb_priv *upriv = NULL; 1579 struct ezusb_priv *upriv = NULL;
1580 struct usb_interface_descriptor *iface_desc; 1580 struct usb_interface_descriptor *iface_desc;
1581 struct usb_endpoint_descriptor *ep; 1581 struct usb_endpoint_descriptor *ep;
@@ -1757,7 +1757,7 @@ static struct usb_driver orinoco_driver = {
1757/* Can't be declared "const" or the whole __initdata section will 1757/* Can't be declared "const" or the whole __initdata section will
1758 * become const */ 1758 * become const */
1759static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION 1759static char version[] __initdata = DRIVER_NAME " " DRIVER_VERSION
1760 " (Manuel Estrada Sainz)"; 1760 " (Manuel Estrada Sainz)";
1761 1761
1762static int __init ezusb_module_init(void) 1762static int __init ezusb_module_init(void)
1763{ 1763{
@@ -1787,6 +1787,5 @@ module_init(ezusb_module_init);
1787module_exit(ezusb_module_exit); 1787module_exit(ezusb_module_exit);
1788 1788
1789MODULE_AUTHOR("Manuel Estrada Sainz"); 1789MODULE_AUTHOR("Manuel Estrada Sainz");
1790MODULE_DESCRIPTION 1790MODULE_DESCRIPTION("Driver for Orinoco wireless LAN cards using EZUSB bridge");
1791 ("Driver for Orinoco wireless LAN cards using EZUSB bridge");
1792MODULE_LICENSE("Dual MPL/GPL"); 1791MODULE_LICENSE("Dual MPL/GPL");