Commit 35db0350 authored by Aybuke Ozdemir's avatar Aybuke Ozdemir Committed by Peter P Waskiewicz Jr

staging: gdm724x: gdm_usb.c: Fix line over 80 characters.

Fix checkpatch.pl issues with line over 80 characters in gdm_usb.c
Signed-off-by: default avatarAybuke Ozdemir <aybuke.147@gmail.com>
Signed-off-by: default avatarPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
parent 0a7ba623
...@@ -30,14 +30,17 @@ ...@@ -30,14 +30,17 @@
#include "gdm_endian.h" #include "gdm_endian.h"
#define USB_DEVICE_CDC_DATA(vid, pid) \ #define USB_DEVICE_CDC_DATA(vid, pid) \
.match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_CLASS | USB_DEVICE_ID_MATCH_INT_SUBCLASS,\ .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
USB_DEVICE_ID_MATCH_INT_CLASS | \
USB_DEVICE_ID_MATCH_INT_SUBCLASS,\
.idVendor = vid,\ .idVendor = vid,\
.idProduct = pid,\ .idProduct = pid,\
.bInterfaceClass = USB_CLASS_COMM,\ .bInterfaceClass = USB_CLASS_COMM,\
.bInterfaceSubClass = USB_CDC_SUBCLASS_ETHERNET .bInterfaceSubClass = USB_CDC_SUBCLASS_ETHERNET
#define USB_DEVICE_MASS_DATA(vid, pid) \ #define USB_DEVICE_MASS_DATA(vid, pid) \
.match_flags = USB_DEVICE_ID_MATCH_DEVICE | USB_DEVICE_ID_MATCH_INT_INFO,\ .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
USB_DEVICE_ID_MATCH_INT_INFO,\
.idVendor = vid,\ .idVendor = vid,\
.idProduct = pid,\ .idProduct = pid,\
.bInterfaceSubClass = USB_SC_SCSI, \ .bInterfaceSubClass = USB_SC_SCSI, \
...@@ -59,7 +62,8 @@ static void do_tx(struct work_struct *work); ...@@ -59,7 +62,8 @@ static void do_tx(struct work_struct *work);
static void do_rx(struct work_struct *work); static void do_rx(struct work_struct *work);
static int gdm_usb_recv(void *priv_dev, static int gdm_usb_recv(void *priv_dev,
int (*cb)(void *cb_data, void *data, int len, int context), int (*cb)(void *cb_data,
void *data, int len, int context),
void *cb_data, void *cb_data,
int context); int context);
...@@ -375,7 +379,8 @@ static int set_mac_address(u8 *data, void *arg) ...@@ -375,7 +379,8 @@ static int set_mac_address(u8 *data, void *arg)
if (tlv->type == MAC_ADDRESS && udev->request_mac_addr) { if (tlv->type == MAC_ADDRESS && udev->request_mac_addr) {
memcpy(mac_address, tlv->data, tlv->len); memcpy(mac_address, tlv->data, tlv->len);
if (register_lte_device(phy_dev, &udev->intf->dev, mac_address) < 0) if (register_lte_device(phy_dev,
&udev->intf->dev, mac_address) < 0)
pr_err("register lte device failed\n"); pr_err("register lte device failed\n");
udev->request_mac_addr = 0; udev->request_mac_addr = 0;
...@@ -388,7 +393,8 @@ static int set_mac_address(u8 *data, void *arg) ...@@ -388,7 +393,8 @@ static int set_mac_address(u8 *data, void *arg)
static void do_rx(struct work_struct *work) static void do_rx(struct work_struct *work)
{ {
struct lte_udev *udev = container_of(work, struct lte_udev, work_rx.work); struct lte_udev *udev =
container_of(work, struct lte_udev, work_rx.work);
struct rx_cxt *rx = &udev->rx; struct rx_cxt *rx = &udev->rx;
struct usb_rx *r; struct usb_rx *r;
struct hci_packet *hci; struct hci_packet *hci;
...@@ -403,7 +409,8 @@ static void do_rx(struct work_struct *work) ...@@ -403,7 +409,8 @@ static void do_rx(struct work_struct *work)
spin_unlock_irqrestore(&rx->to_host_lock, flags); spin_unlock_irqrestore(&rx->to_host_lock, flags);
break; break;
} }
r = list_entry(rx->to_host_list.next, struct usb_rx, to_host_list); r = list_entry(rx->to_host_list.next,
struct usb_rx, to_host_list);
list_del(&r->to_host_list); list_del(&r->to_host_list);
spin_unlock_irqrestore(&rx->to_host_lock, flags); spin_unlock_irqrestore(&rx->to_host_lock, flags);
...@@ -450,7 +457,8 @@ static void remove_rx_submit_list(struct usb_rx *r, struct rx_cxt *rx) ...@@ -450,7 +457,8 @@ static void remove_rx_submit_list(struct usb_rx *r, struct rx_cxt *rx)
struct usb_rx *r_remove, *r_remove_next; struct usb_rx *r_remove, *r_remove_next;
spin_lock_irqsave(&rx->submit_lock, flags); spin_lock_irqsave(&rx->submit_lock, flags);
list_for_each_entry_safe(r_remove, r_remove_next, &rx->rx_submit_list, rx_submit_list) list_for_each_entry_safe(r_remove,
r_remove_next, &rx->rx_submit_list, rx_submit_list)
{ {
if (r == r_remove) { if (r == r_remove) {
list_del(&r->rx_submit_list); list_del(&r->rx_submit_list);
...@@ -487,7 +495,8 @@ static void gdm_usb_rcv_complete(struct urb *urb) ...@@ -487,7 +495,8 @@ static void gdm_usb_rcv_complete(struct urb *urb)
} }
static int gdm_usb_recv(void *priv_dev, static int gdm_usb_recv(void *priv_dev,
int (*cb)(void *cb_data, void *data, int len, int context), int (*cb)(void *cb_data,
void *data, int len, int context),
void *cb_data, void *cb_data,
int context) int context)
{ {
...@@ -641,7 +650,8 @@ static u32 packet_aggregation(struct lte_udev *udev, u8 *send_buf) ...@@ -641,7 +650,8 @@ static u32 packet_aggregation(struct lte_udev *udev, u8 *send_buf)
static void do_tx(struct work_struct *work) static void do_tx(struct work_struct *work)
{ {
struct lte_udev *udev = container_of(work, struct lte_udev, work_tx.work); struct lte_udev *udev =
container_of(work, struct lte_udev, work_tx.work);
struct usb_device *usbdev = udev->usbdev; struct usb_device *usbdev = udev->usbdev;
struct tx_cxt *tx = &udev->tx; struct tx_cxt *tx = &udev->tx;
struct usb_tx *t = NULL; struct usb_tx *t = NULL;
...@@ -800,7 +810,8 @@ static struct gdm_endian *gdm_usb_get_endian(void *priv_dev) ...@@ -800,7 +810,8 @@ static struct gdm_endian *gdm_usb_get_endian(void *priv_dev)
return &udev->gdm_ed; return &udev->gdm_ed;
} }
static int gdm_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) static int gdm_usb_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{ {
int ret = 0; int ret = 0;
struct phy_dev *phy_dev = NULL; struct phy_dev *phy_dev = NULL;
...@@ -848,7 +859,9 @@ static int gdm_usb_probe(struct usb_interface *intf, const struct usb_device_id ...@@ -848,7 +859,9 @@ static int gdm_usb_probe(struct usb_interface *intf, const struct usb_device_id
usb_enable_autosuspend(usbdev); usb_enable_autosuspend(usbdev);
pm_runtime_set_autosuspend_delay(&usbdev->dev, AUTO_SUSPEND_TIMER); pm_runtime_set_autosuspend_delay(&usbdev->dev, AUTO_SUSPEND_TIMER);
/* List up hosts with big endians, otherwise, defaults to little endian */ /* List up hosts with big endians, otherwise,
* defaults to little endian
*/
if (idProduct == PID_GDM7243) if (idProduct == PID_GDM7243)
gdm_set_endian(&udev->gdm_ed, ENDIANNESS_BIG); gdm_set_endian(&udev->gdm_ed, ENDIANNESS_BIG);
else else
......
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