libertas: kill whitespace at end of lines
Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
eae86bf378
commit
7e226272fc
|
@ -1122,7 +1122,7 @@ int lbs_mesh_config(struct lbs_private *priv, uint16_t enable, uint16_t chan)
|
||||||
cmd.action = cpu_to_le16(enable);
|
cmd.action = cpu_to_le16(enable);
|
||||||
cmd.channel = cpu_to_le16(chan);
|
cmd.channel = cpu_to_le16(chan);
|
||||||
cmd.type = cpu_to_le16(priv->mesh_tlv);
|
cmd.type = cpu_to_le16(priv->mesh_tlv);
|
||||||
|
|
||||||
if (enable) {
|
if (enable) {
|
||||||
cmd.length = cpu_to_le16(priv->mesh_ssid_len);
|
cmd.length = cpu_to_le16(priv->mesh_ssid_len);
|
||||||
memcpy(cmd.data, priv->mesh_ssid, priv->mesh_ssid_len);
|
memcpy(cmd.data, priv->mesh_ssid, priv->mesh_ssid_len);
|
||||||
|
|
|
@ -11,9 +11,9 @@
|
||||||
|
|
||||||
#define lbs_cmd_with_response(priv, cmdnr, cmd) \
|
#define lbs_cmd_with_response(priv, cmdnr, cmd) \
|
||||||
lbs_cmd(priv, cmdnr, cmd, lbs_cmd_copyback, (unsigned long) (cmd))
|
lbs_cmd(priv, cmdnr, cmd, lbs_cmd_copyback, (unsigned long) (cmd))
|
||||||
|
|
||||||
int __lbs_cmd(struct lbs_private *priv, uint16_t command,
|
int __lbs_cmd(struct lbs_private *priv, uint16_t command,
|
||||||
struct cmd_header *in_cmd, int in_cmd_size,
|
struct cmd_header *in_cmd, int in_cmd_size,
|
||||||
int (*callback)(struct lbs_private *, unsigned long, struct cmd_header *),
|
int (*callback)(struct lbs_private *, unsigned long, struct cmd_header *),
|
||||||
unsigned long callback_arg);
|
unsigned long callback_arg);
|
||||||
|
|
||||||
|
|
|
@ -296,7 +296,7 @@ static ssize_t lbs_setuserscan(struct file *file,
|
||||||
|
|
||||||
if (!buf)
|
if (!buf)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
buf_size = min(count, len - 1);
|
buf_size = min(count, len - 1);
|
||||||
if (copy_from_user(buf, userbuf, buf_size)) {
|
if (copy_from_user(buf, userbuf, buf_size)) {
|
||||||
res = -EFAULT;
|
res = -EFAULT;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
* current block size.
|
* current block size.
|
||||||
*
|
*
|
||||||
* As SDIO is still new to the kernel, it is unfortunately common with
|
* As SDIO is still new to the kernel, it is unfortunately common with
|
||||||
* bugs in the host controllers related to that. One such bug is that
|
* bugs in the host controllers related to that. One such bug is that
|
||||||
* controllers cannot do transfers that aren't a multiple of 4 bytes.
|
* controllers cannot do transfers that aren't a multiple of 4 bytes.
|
||||||
* If you don't have time to fix the host controller driver, you can
|
* If you don't have time to fix the host controller driver, you can
|
||||||
* work around the problem by modifying if_sdio_host_to_card() and
|
* work around the problem by modifying if_sdio_host_to_card() and
|
||||||
|
|
|
@ -152,7 +152,7 @@ static int if_usb_probe(struct usb_interface *intf,
|
||||||
|
|
||||||
setup_timer(&cardp->fw_timeout, if_usb_fw_timeo, (unsigned long)cardp);
|
setup_timer(&cardp->fw_timeout, if_usb_fw_timeo, (unsigned long)cardp);
|
||||||
init_waitqueue_head(&cardp->fw_wq);
|
init_waitqueue_head(&cardp->fw_wq);
|
||||||
|
|
||||||
cardp->udev = udev;
|
cardp->udev = udev;
|
||||||
iface_desc = intf->cur_altsetting;
|
iface_desc = intf->cur_altsetting;
|
||||||
|
|
||||||
|
@ -871,7 +871,7 @@ restart:
|
||||||
|
|
||||||
/* ... and wait for the process to complete */
|
/* ... and wait for the process to complete */
|
||||||
wait_event_interruptible(cardp->fw_wq, cardp->surprise_removed || cardp->fwdnldover);
|
wait_event_interruptible(cardp->fw_wq, cardp->surprise_removed || cardp->fwdnldover);
|
||||||
|
|
||||||
del_timer_sync(&cardp->fw_timeout);
|
del_timer_sync(&cardp->fw_timeout);
|
||||||
usb_kill_urb(cardp->rx_urb);
|
usb_kill_urb(cardp->rx_urb);
|
||||||
|
|
||||||
|
|
|
@ -255,7 +255,7 @@ static int lbs_add_rtap(struct lbs_private *priv);
|
||||||
static void lbs_remove_rtap(struct lbs_private *priv);
|
static void lbs_remove_rtap(struct lbs_private *priv);
|
||||||
static int lbs_add_mesh(struct lbs_private *priv);
|
static int lbs_add_mesh(struct lbs_private *priv);
|
||||||
static void lbs_remove_mesh(struct lbs_private *priv);
|
static void lbs_remove_mesh(struct lbs_private *priv);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get function for sysfs attribute rtap
|
* Get function for sysfs attribute rtap
|
||||||
|
@ -347,7 +347,7 @@ static ssize_t lbs_mesh_set(struct device *dev,
|
||||||
ret = lbs_mesh_config(priv, enable, priv->curbssparams.channel);
|
ret = lbs_mesh_config(priv, enable, priv->curbssparams.channel);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (enable)
|
if (enable)
|
||||||
lbs_add_mesh(priv);
|
lbs_add_mesh(priv);
|
||||||
else
|
else
|
||||||
|
@ -401,7 +401,7 @@ static int lbs_dev_open(struct net_device *dev)
|
||||||
netif_carrier_on(dev);
|
netif_carrier_on(dev);
|
||||||
} else {
|
} else {
|
||||||
priv->infra_open = 1;
|
priv->infra_open = 1;
|
||||||
|
|
||||||
if (priv->connect_status == LBS_CONNECTED)
|
if (priv->connect_status == LBS_CONNECTED)
|
||||||
netif_carrier_on(dev);
|
netif_carrier_on(dev);
|
||||||
else
|
else
|
||||||
|
@ -433,7 +433,7 @@ static int lbs_mesh_stop(struct net_device *dev)
|
||||||
|
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
netif_carrier_off(dev);
|
netif_carrier_off(dev);
|
||||||
|
|
||||||
spin_unlock_irq(&priv->driver_lock);
|
spin_unlock_irq(&priv->driver_lock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -453,7 +453,7 @@ static int lbs_eth_stop(struct net_device *dev)
|
||||||
priv->infra_open = 0;
|
priv->infra_open = 0;
|
||||||
|
|
||||||
netif_stop_queue(dev);
|
netif_stop_queue(dev);
|
||||||
|
|
||||||
spin_unlock_irq(&priv->driver_lock);
|
spin_unlock_irq(&priv->driver_lock);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -850,7 +850,7 @@ int lbs_suspend(struct lbs_private *priv)
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&cmd, 0, sizeof(cmd));
|
memset(&cmd, 0, sizeof(cmd));
|
||||||
|
|
||||||
ret = __lbs_cmd(priv, CMD_802_11_HOST_SLEEP_ACTIVATE, &cmd,
|
ret = __lbs_cmd(priv, CMD_802_11_HOST_SLEEP_ACTIVATE, &cmd,
|
||||||
sizeof(cmd), lbs_suspend_callback, 0);
|
sizeof(cmd), lbs_suspend_callback, 0);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -1180,7 +1180,7 @@ int lbs_start_card(struct lbs_private *priv)
|
||||||
/* Enable mesh, if supported, and work out which TLV it uses.
|
/* Enable mesh, if supported, and work out which TLV it uses.
|
||||||
0x100 + 291 is an unofficial value used in 5.110.20.pXX
|
0x100 + 291 is an unofficial value used in 5.110.20.pXX
|
||||||
0x100 + 37 is the official value used in 5.110.21.pXX
|
0x100 + 37 is the official value used in 5.110.21.pXX
|
||||||
but we check them in that order because 20.pXX doesn't
|
but we check them in that order because 20.pXX doesn't
|
||||||
give an error -- it just silently fails. */
|
give an error -- it just silently fails. */
|
||||||
|
|
||||||
/* 5.110.20.pXX firmware will fail the command if the channel
|
/* 5.110.20.pXX firmware will fail the command if the channel
|
||||||
|
|
|
@ -93,8 +93,8 @@ int lbs_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||||
netif_stop_queue(priv->mesh_dev);
|
netif_stop_queue(priv->mesh_dev);
|
||||||
|
|
||||||
if (priv->tx_pending_len) {
|
if (priv->tx_pending_len) {
|
||||||
/* This can happen if packets come in on the mesh and eth
|
/* This can happen if packets come in on the mesh and eth
|
||||||
device simultaneously -- there's no mutual exclusion on
|
device simultaneously -- there's no mutual exclusion on
|
||||||
hard_start_xmit() calls between devices. */
|
hard_start_xmit() calls between devices. */
|
||||||
lbs_deb_tx("Packet on %s while busy\n", dev->name);
|
lbs_deb_tx("Packet on %s while busy\n", dev->name);
|
||||||
ret = NETDEV_TX_BUSY;
|
ret = NETDEV_TX_BUSY;
|
||||||
|
|
Reference in New Issue