Commit d98422cb authored by Derek Robson's avatar Derek Robson Committed by Marcel Holtmann

Bluetooth: Style fix - align block comments

Fixed alignment of all block comments.
Found using checkpatch
Signed-off-by: default avatarDerek Robson <robsonde@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 1d609dd3
...@@ -140,7 +140,8 @@ MODULE_DEVICE_TABLE(usb, ath3k_table); ...@@ -140,7 +140,8 @@ MODULE_DEVICE_TABLE(usb, ath3k_table);
#define BTUSB_ATH3012 0x80 #define BTUSB_ATH3012 0x80
/* This table is to load patch and sysconfig files /* This table is to load patch and sysconfig files
* for AR3012 */ * for AR3012
*/
static const struct usb_device_id ath3k_blist_tbl[] = { static const struct usb_device_id ath3k_blist_tbl[] = {
/* Atheros AR3012 with sflash firmware*/ /* Atheros AR3012 with sflash firmware*/
......
...@@ -684,14 +684,16 @@ static int bt3c_config(struct pcmcia_device *link) ...@@ -684,14 +684,16 @@ static int bt3c_config(struct pcmcia_device *link)
unsigned long try; unsigned long try;
/* First pass: look for a config entry that looks normal. /* First pass: look for a config entry that looks normal.
Two tries: without IO aliases, then with aliases */ * Two tries: without IO aliases, then with aliases
*/
for (try = 0; try < 2; try++) for (try = 0; try < 2; try++)
if (!pcmcia_loop_config(link, bt3c_check_config, (void *) try)) if (!pcmcia_loop_config(link, bt3c_check_config, (void *) try))
goto found_port; goto found_port;
/* Second pass: try to find an entry that isn't picky about /* Second pass: try to find an entry that isn't picky about
its base address, then try to grab any standard serial port * its base address, then try to grab any standard serial port
address, and finally try to get any free port. */ * address, and finally try to get any free port.
*/
if (!pcmcia_loop_config(link, bt3c_check_config_notpicky, NULL)) if (!pcmcia_loop_config(link, bt3c_check_config_notpicky, NULL))
goto found_port; goto found_port;
......
...@@ -1455,7 +1455,8 @@ static void btmrvl_sdio_dump_firmware(struct btmrvl_private *priv) ...@@ -1455,7 +1455,8 @@ static void btmrvl_sdio_dump_firmware(struct btmrvl_private *priv)
fw_dump_ptr = fw_dump_data; fw_dump_ptr = fw_dump_data;
/* Dump all the memory data into single file, a userspace script will /* Dump all the memory data into single file, a userspace script will
be used to split all the memory data to multiple files*/ * be used to split all the memory data to multiple files
*/
BT_INFO("== btmrvl firmware dump to /sys/class/devcoredump start"); BT_INFO("== btmrvl firmware dump to /sys/class/devcoredump start");
for (idx = 0; idx < dump_num; idx++) { for (idx = 0; idx < dump_num; idx++) {
struct memory_type_mapping *entry = &mem_type_mapping_tbl[idx]; struct memory_type_mapping *entry = &mem_type_mapping_tbl[idx];
...@@ -1482,7 +1483,8 @@ static void btmrvl_sdio_dump_firmware(struct btmrvl_private *priv) ...@@ -1482,7 +1483,8 @@ static void btmrvl_sdio_dump_firmware(struct btmrvl_private *priv)
} }
/* fw_dump_data will be free in device coredump release function /* fw_dump_data will be free in device coredump release function
after 5 min*/ * after 5 min
*/
dev_coredumpv(&card->func->dev, fw_dump_data, fw_dump_len, GFP_KERNEL); dev_coredumpv(&card->func->dev, fw_dump_data, fw_dump_len, GFP_KERNEL);
BT_INFO("== btmrvl firmware dump to /sys/class/devcoredump end"); BT_INFO("== btmrvl firmware dump to /sys/class/devcoredump end");
} }
......
...@@ -144,7 +144,8 @@ static int btsdio_rx_packet(struct btsdio_data *data) ...@@ -144,7 +144,8 @@ static int btsdio_rx_packet(struct btsdio_data *data)
if (!skb) { if (!skb) {
/* Out of memory. Prepare a read retry and just /* Out of memory. Prepare a read retry and just
* return with the expectation that the next time * return with the expectation that the next time
* we're called we'll have more memory. */ * we're called we'll have more memory.
*/
return -ENOMEM; return -ENOMEM;
} }
......
...@@ -614,14 +614,16 @@ static int btuart_config(struct pcmcia_device *link) ...@@ -614,14 +614,16 @@ static int btuart_config(struct pcmcia_device *link)
int try; int try;
/* First pass: look for a config entry that looks normal. /* First pass: look for a config entry that looks normal.
Two tries: without IO aliases, then with aliases */ * Two tries: without IO aliases, then with aliases
*/
for (try = 0; try < 2; try++) for (try = 0; try < 2; try++)
if (!pcmcia_loop_config(link, btuart_check_config, &try)) if (!pcmcia_loop_config(link, btuart_check_config, &try))
goto found_port; goto found_port;
/* Second pass: try to find an entry that isn't picky about /* Second pass: try to find an entry that isn't picky about
its base address, then try to grab any standard serial port * its base address, then try to grab any standard serial port
address, and finally try to get any free port. */ * address, and finally try to get any free port.
*/
if (!pcmcia_loop_config(link, btuart_check_config_notpicky, NULL)) if (!pcmcia_loop_config(link, btuart_check_config_notpicky, NULL))
goto found_port; goto found_port;
......
...@@ -657,7 +657,8 @@ static void btusb_intr_complete(struct urb *urb) ...@@ -657,7 +657,8 @@ static void btusb_intr_complete(struct urb *urb)
err = usb_submit_urb(urb, GFP_ATOMIC); err = usb_submit_urb(urb, GFP_ATOMIC);
if (err < 0) { if (err < 0) {
/* -EPERM: urb is being killed; /* -EPERM: urb is being killed;
* -ENODEV: device got disconnected */ * -ENODEV: device got disconnected
*/
if (err != -EPERM && err != -ENODEV) if (err != -EPERM && err != -ENODEV)
BT_ERR("%s urb %p failed to resubmit (%d)", BT_ERR("%s urb %p failed to resubmit (%d)",
hdev->name, urb, -err); hdev->name, urb, -err);
...@@ -746,7 +747,8 @@ static void btusb_bulk_complete(struct urb *urb) ...@@ -746,7 +747,8 @@ static void btusb_bulk_complete(struct urb *urb)
err = usb_submit_urb(urb, GFP_ATOMIC); err = usb_submit_urb(urb, GFP_ATOMIC);
if (err < 0) { if (err < 0) {
/* -EPERM: urb is being killed; /* -EPERM: urb is being killed;
* -ENODEV: device got disconnected */ * -ENODEV: device got disconnected
*/
if (err != -EPERM && err != -ENODEV) if (err != -EPERM && err != -ENODEV)
BT_ERR("%s urb %p failed to resubmit (%d)", BT_ERR("%s urb %p failed to resubmit (%d)",
hdev->name, urb, -err); hdev->name, urb, -err);
...@@ -841,7 +843,8 @@ static void btusb_isoc_complete(struct urb *urb) ...@@ -841,7 +843,8 @@ static void btusb_isoc_complete(struct urb *urb)
err = usb_submit_urb(urb, GFP_ATOMIC); err = usb_submit_urb(urb, GFP_ATOMIC);
if (err < 0) { if (err < 0) {
/* -EPERM: urb is being killed; /* -EPERM: urb is being killed;
* -ENODEV: device got disconnected */ * -ENODEV: device got disconnected
*/
if (err != -EPERM && err != -ENODEV) if (err != -EPERM && err != -ENODEV)
BT_ERR("%s urb %p failed to resubmit (%d)", BT_ERR("%s urb %p failed to resubmit (%d)",
hdev->name, urb, -err); hdev->name, urb, -err);
...@@ -953,7 +956,8 @@ static void btusb_diag_complete(struct urb *urb) ...@@ -953,7 +956,8 @@ static void btusb_diag_complete(struct urb *urb)
err = usb_submit_urb(urb, GFP_ATOMIC); err = usb_submit_urb(urb, GFP_ATOMIC);
if (err < 0) { if (err < 0) {
/* -EPERM: urb is being killed; /* -EPERM: urb is being killed;
* -ENODEV: device got disconnected */ * -ENODEV: device got disconnected
*/
if (err != -EPERM && err != -ENODEV) if (err != -EPERM && err != -ENODEV)
BT_ERR("%s urb %p failed to resubmit (%d)", BT_ERR("%s urb %p failed to resubmit (%d)",
hdev->name, urb, -err); hdev->name, urb, -err);
...@@ -2897,7 +2901,8 @@ static int btusb_probe(struct usb_interface *intf, ...@@ -2897,7 +2901,8 @@ static int btusb_probe(struct usb_interface *intf,
struct usb_device *udev = interface_to_usbdev(intf); struct usb_device *udev = interface_to_usbdev(intf);
/* Old firmware would otherwise let ath3k driver load /* Old firmware would otherwise let ath3k driver load
* patch and sysconfig files */ * patch and sysconfig files
*/
if (le16_to_cpu(udev->descriptor.bcdDevice) <= 0x0001) if (le16_to_cpu(udev->descriptor.bcdDevice) <= 0x0001)
return -ENODEV; return -ENODEV;
} }
......
...@@ -93,8 +93,7 @@ static void st_reg_completion_cb(void *priv_data, int data) ...@@ -93,8 +93,7 @@ static void st_reg_completion_cb(void *priv_data, int data)
complete(&lhst->wait_reg_completion); complete(&lhst->wait_reg_completion);
} }
/* Called by Shared Transport layer when receive data is /* Called by Shared Transport layer when receive data is available */
* available */
static long st_receive(void *priv_data, struct sk_buff *skb) static long st_receive(void *priv_data, struct sk_buff *skb)
{ {
struct ti_st *lhst = priv_data; struct ti_st *lhst = priv_data;
...@@ -198,7 +197,8 @@ static int ti_st_open(struct hci_dev *hdev) ...@@ -198,7 +197,8 @@ static int ti_st_open(struct hci_dev *hdev)
} }
/* Is ST registration callback /* Is ST registration callback
* called with ERROR status? */ * called with ERROR status?
*/
if (hst->reg_status != 0) { if (hst->reg_status != 0) {
BT_ERR("ST registration completed with invalid " BT_ERR("ST registration completed with invalid "
"status %d", hst->reg_status); "status %d", hst->reg_status);
......
...@@ -457,7 +457,8 @@ static int hci_uart_tty_open(struct tty_struct *tty) ...@@ -457,7 +457,8 @@ static int hci_uart_tty_open(struct tty_struct *tty)
BT_DBG("tty %p", tty); BT_DBG("tty %p", tty);
/* Error if the tty has no write op instead of leaving an exploitable /* Error if the tty has no write op instead of leaving an exploitable
hole */ * hole
*/
if (tty->ops->write == NULL) if (tty->ops->write == NULL)
return -EOPNOTSUPP; return -EOPNOTSUPP;
......
...@@ -622,7 +622,8 @@ static int download_firmware(struct ll_device *lldev) ...@@ -622,7 +622,8 @@ static int download_firmware(struct ll_device *lldev)
cmd = (struct hci_command *)action_ptr; cmd = (struct hci_command *)action_ptr;
if (cmd->opcode == 0xff36) { if (cmd->opcode == 0xff36) {
/* ignore remote change /* ignore remote change
* baud rate HCI VS command */ * baud rate HCI VS command
*/
bt_dev_warn(lldev->hu.hdev, "change remote baud rate command in firmware"); bt_dev_warn(lldev->hu.hdev, "change remote baud rate command in firmware");
break; break;
} }
......
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