mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
staging: wlan-ng: fix line style warnings in hfa384x_usb.c
This patch fix the following checkpatch.pl warnings in hfa384x_usb.c: WARNING: line over 80 characters Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f346d62f33
commit
5a919c7887
1 changed files with 38 additions and 33 deletions
|
@ -153,8 +153,8 @@ enum cmd_mode {
|
||||||
static void dbprint_urb(struct urb *urb);
|
static void dbprint_urb(struct urb *urb);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void
|
static void hfa384x_int_rxmonitor(struct wlandevice *wlandev,
|
||||||
hfa384x_int_rxmonitor(struct wlandevice *wlandev, struct hfa384x_usb_rxfrm *rxfrm);
|
struct hfa384x_usb_rxfrm *rxfrm);
|
||||||
|
|
||||||
static void hfa384x_usb_defer(struct work_struct *data);
|
static void hfa384x_usb_defer(struct work_struct *data);
|
||||||
|
|
||||||
|
@ -173,7 +173,8 @@ hfa384x_usbin_txcompl(struct wlandevice *wlandev, union hfa384x_usbin *usbin);
|
||||||
|
|
||||||
static void hfa384x_usbin_rx(struct wlandevice *wlandev, struct sk_buff *skb);
|
static void hfa384x_usbin_rx(struct wlandevice *wlandev, struct sk_buff *skb);
|
||||||
|
|
||||||
static void hfa384x_usbin_info(struct wlandevice *wlandev, union hfa384x_usbin *usbin);
|
static void hfa384x_usbin_info(struct wlandevice *wlandev,
|
||||||
|
union hfa384x_usbin *usbin);
|
||||||
|
|
||||||
static void hfa384x_usbin_ctlx(struct hfa384x *hw, union hfa384x_usbin *usbin,
|
static void hfa384x_usbin_ctlx(struct hfa384x *hw, union hfa384x_usbin *usbin,
|
||||||
int urb_status);
|
int urb_status);
|
||||||
|
@ -193,9 +194,11 @@ static void hfa384x_usbctlx_completion_task(unsigned long data);
|
||||||
|
|
||||||
static void hfa384x_usbctlx_reaper_task(unsigned long data);
|
static void hfa384x_usbctlx_reaper_task(unsigned long data);
|
||||||
|
|
||||||
static int hfa384x_usbctlx_submit(struct hfa384x *hw, struct hfa384x_usbctlx *ctlx);
|
static int hfa384x_usbctlx_submit(struct hfa384x *hw,
|
||||||
|
struct hfa384x_usbctlx *ctlx);
|
||||||
|
|
||||||
static void unlocked_usbctlx_complete(struct hfa384x *hw, struct hfa384x_usbctlx *ctlx);
|
static void unlocked_usbctlx_complete(struct hfa384x *hw,
|
||||||
|
struct hfa384x_usbctlx *ctlx);
|
||||||
|
|
||||||
struct usbctlx_completor {
|
struct usbctlx_completor {
|
||||||
int (*complete)(struct usbctlx_completor *);
|
int (*complete)(struct usbctlx_completor *);
|
||||||
|
@ -209,7 +212,8 @@ hfa384x_usbctlx_complete_sync(struct hfa384x *hw,
|
||||||
static int
|
static int
|
||||||
unlocked_usbctlx_cancel_async(struct hfa384x *hw, struct hfa384x_usbctlx *ctlx);
|
unlocked_usbctlx_cancel_async(struct hfa384x *hw, struct hfa384x_usbctlx *ctlx);
|
||||||
|
|
||||||
static void hfa384x_cb_status(struct hfa384x *hw, const struct hfa384x_usbctlx *ctlx);
|
static void hfa384x_cb_status(struct hfa384x *hw,
|
||||||
|
const struct hfa384x_usbctlx *ctlx);
|
||||||
|
|
||||||
static int
|
static int
|
||||||
usbctlx_get_status(const struct hfa384x_usb_statusresp *cmdresp,
|
usbctlx_get_status(const struct hfa384x_usb_statusresp *cmdresp,
|
||||||
|
@ -664,12 +668,10 @@ static inline int usbctlx_cmd_completor_fn(struct usbctlx_completor *head)
|
||||||
return usbctlx_get_status(complete->cmdresp, complete->result);
|
return usbctlx_get_status(complete->cmdresp, complete->result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct usbctlx_completor *init_cmd_completor(
|
static inline struct usbctlx_completor *
|
||||||
struct usbctlx_cmd_completor
|
init_cmd_completor(struct usbctlx_cmd_completor *completor,
|
||||||
*completor,
|
const struct hfa384x_usb_statusresp *cmdresp,
|
||||||
const struct hfa384x_usb_statusresp
|
struct hfa384x_cmdresult *result)
|
||||||
*cmdresp,
|
|
||||||
struct hfa384x_cmdresult *result)
|
|
||||||
{
|
{
|
||||||
completor->head.complete = usbctlx_cmd_completor_fn;
|
completor->head.complete = usbctlx_cmd_completor_fn;
|
||||||
completor->cmdresp = cmdresp;
|
completor->cmdresp = cmdresp;
|
||||||
|
@ -710,13 +712,11 @@ static int usbctlx_rrid_completor_fn(struct usbctlx_completor *head)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct usbctlx_completor *init_rrid_completor(
|
static inline struct usbctlx_completor *
|
||||||
struct usbctlx_rrid_completor
|
init_rrid_completor(struct usbctlx_rrid_completor *completor,
|
||||||
*completor,
|
const struct hfa384x_usb_rridresp *rridresp,
|
||||||
const struct hfa384x_usb_rridresp
|
void *riddata,
|
||||||
*rridresp,
|
unsigned int riddatalen)
|
||||||
void *riddata,
|
|
||||||
unsigned int riddatalen)
|
|
||||||
{
|
{
|
||||||
completor->head.complete = usbctlx_rrid_completor_fn;
|
completor->head.complete = usbctlx_rrid_completor_fn;
|
||||||
completor->rridresp = rridresp;
|
completor->rridresp = rridresp;
|
||||||
|
@ -759,13 +759,11 @@ static int usbctlx_rmem_completor_fn(struct usbctlx_completor *head)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct usbctlx_completor *init_rmem_completor(
|
static inline struct usbctlx_completor *
|
||||||
struct usbctlx_rmem_completor
|
init_rmem_completor(struct usbctlx_rmem_completor *completor,
|
||||||
*completor,
|
struct hfa384x_usb_rmemresp *rmemresp,
|
||||||
struct hfa384x_usb_rmemresp
|
void *data,
|
||||||
*rmemresp,
|
unsigned int len)
|
||||||
void *data,
|
|
||||||
unsigned int len)
|
|
||||||
{
|
{
|
||||||
completor->head.complete = usbctlx_rmem_completor_fn;
|
completor->head.complete = usbctlx_rmem_completor_fn;
|
||||||
completor->rmemresp = rmemresp;
|
completor->rmemresp = rmemresp;
|
||||||
|
@ -795,7 +793,8 @@ static inline struct usbctlx_completor *init_rmem_completor(
|
||||||
* Call context:
|
* Call context:
|
||||||
* interrupt
|
* interrupt
|
||||||
----------------------------------------------------------------*/
|
----------------------------------------------------------------*/
|
||||||
static void hfa384x_cb_status(struct hfa384x *hw, const struct hfa384x_usbctlx *ctlx)
|
static void hfa384x_cb_status(struct hfa384x *hw,
|
||||||
|
const struct hfa384x_usbctlx *ctlx)
|
||||||
{
|
{
|
||||||
if (ctlx->usercb) {
|
if (ctlx->usercb) {
|
||||||
struct hfa384x_cmdresult cmdresult;
|
struct hfa384x_cmdresult cmdresult;
|
||||||
|
@ -812,7 +811,8 @@ static void hfa384x_cb_status(struct hfa384x *hw, const struct hfa384x_usbctlx *
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int hfa384x_docmd_wait(struct hfa384x *hw, struct hfa384x_metacmd *cmd)
|
static inline int hfa384x_docmd_wait(struct hfa384x *hw,
|
||||||
|
struct hfa384x_metacmd *cmd)
|
||||||
{
|
{
|
||||||
return hfa384x_docmd(hw, DOWAIT, cmd, NULL, NULL, NULL);
|
return hfa384x_docmd(hw, DOWAIT, cmd, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
@ -1136,7 +1136,8 @@ int hfa384x_cmd_download(struct hfa384x *hw, u16 mode, u16 lowaddr,
|
||||||
* Call context:
|
* Call context:
|
||||||
* process
|
* process
|
||||||
----------------------------------------------------------------*/
|
----------------------------------------------------------------*/
|
||||||
int hfa384x_corereset(struct hfa384x *hw, int holdtime, int settletime, int genesis)
|
int hfa384x_corereset(struct hfa384x *hw, int holdtime,
|
||||||
|
int settletime, int genesis)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
|
@ -1894,7 +1895,8 @@ int hfa384x_drvr_flashdl_disable(struct hfa384x *hw)
|
||||||
* Call context:
|
* Call context:
|
||||||
* process
|
* process
|
||||||
----------------------------------------------------------------*/
|
----------------------------------------------------------------*/
|
||||||
int hfa384x_drvr_flashdl_write(struct hfa384x *hw, u32 daddr, void *buf, u32 len)
|
int hfa384x_drvr_flashdl_write(struct hfa384x *hw, u32 daddr,
|
||||||
|
void *buf, u32 len)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
u32 dlbufaddr;
|
u32 dlbufaddr;
|
||||||
|
@ -2146,7 +2148,8 @@ int hfa384x_drvr_ramdl_enable(struct hfa384x *hw, u32 exeaddr)
|
||||||
|
|
||||||
/* Check that we're not already in a download state */
|
/* Check that we're not already in a download state */
|
||||||
if (hw->dlstate != HFA384x_DLSTATE_DISABLED) {
|
if (hw->dlstate != HFA384x_DLSTATE_DISABLED) {
|
||||||
netdev_err(hw->wlandev->netdev, "Download state not disabled.\n");
|
netdev_err(hw->wlandev->netdev,
|
||||||
|
"Download state not disabled.\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2847,7 +2850,8 @@ static int unlocked_usbctlx_cancel_async(struct hfa384x *hw,
|
||||||
* Call context:
|
* Call context:
|
||||||
* Either, assume interrupt
|
* Either, assume interrupt
|
||||||
----------------------------------------------------------------*/
|
----------------------------------------------------------------*/
|
||||||
static void unlocked_usbctlx_complete(struct hfa384x *hw, struct hfa384x_usbctlx *ctlx)
|
static void unlocked_usbctlx_complete(struct hfa384x *hw,
|
||||||
|
struct hfa384x_usbctlx *ctlx)
|
||||||
{
|
{
|
||||||
/* Timers have been stopped, and ctlx should be in
|
/* Timers have been stopped, and ctlx should be in
|
||||||
* a terminal state. Retire it from the "active"
|
* a terminal state. Retire it from the "active"
|
||||||
|
@ -3886,7 +3890,8 @@ static void hfa384x_usb_throttlefn(unsigned long data)
|
||||||
* Call context:
|
* Call context:
|
||||||
* process or interrupt
|
* process or interrupt
|
||||||
----------------------------------------------------------------*/
|
----------------------------------------------------------------*/
|
||||||
static int hfa384x_usbctlx_submit(struct hfa384x *hw, struct hfa384x_usbctlx *ctlx)
|
static int hfa384x_usbctlx_submit(struct hfa384x *hw,
|
||||||
|
struct hfa384x_usbctlx *ctlx)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue