staging: wlang-ng: avoid new typedef: hfa384x_usbctlx_t
PATCH 83/87 staging: wlang-ng: avoid new typedef: hfa384x_usbctlx_t
This patch fixes the following checkpatch.pl warning in hfa384x.h:
WARNING: do not add new typedefs
It applies for typedef hfa384x_usbctlx_t
Signed-off-by Sergio Paracuellos <[email protected]>
--- drivers/staging/wlan-ng/hfa384x.h | 4 +-- drivers/staging/wlan-ng/hfa384x_usb.c | 54 +++++++++++++++++------------------ drivers/staging/wlan-ng/prism2usb.c | 2 +- 3 files changed, 30 insertions(+), 30 deletions(-)
drivers/staging/wlan-ng/hfa384x.h +2 -2
@@ -1179,7 +1179,7 @@ enum ctlx_state {typedef void (*ctlx_usercb_t ) (struct hfa384x *hw,void *ctlxresult,void *usercb_data); -typedef struct hfa384x_usbctlx { +struct hfa384x_usbctlx {struct list_head list;size_t outbufsize;
@@ -1196,7 +1196,7 @@ typedef void (*ctlx_usercb_t) (struct hfa384x *hw,void *usercb_data;/* at CTLX completion */ int variant;/* Identifies cmd variant */ -} hfa384x_usbctlx_t; +}; typedef struct hfa384x_usbctlxq { spinlock_t lock;
drivers/staging/wlan-ng/hfa384x_usb.c +27 -27
191 lines not on this page · raw message
drivers/staging/wlan-ng/prism2usb.c +1 -1
@@ -139,7 +139,7 @@ static void prism2sta_disconnect_usb(struct usb_interface *interface) wlandev = (struct wlandevice *)usb_get_intfdata (interface);if (wlandev) {LIST_HEAD (cleanlist); -hfa384x_usbctlx_t *ctlx, *temp; +struct hfa384x_usbctlx *ctlx, *temp;unsigned long flags;hfa384x_t *hw = wlandev->priv;
Signature · 1 line
1.9.1