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: avoid new typedef CTLX_STATE
This patch fixes the following checkpatch.pl warning in hfa384x.h: WARNING: do not add new typedefs It applies for typedef CTLX_STATE Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
33630b0018
commit
173bf7e37f
2 changed files with 2 additions and 3 deletions
|
@ -1169,7 +1169,6 @@ enum ctlx_state {
|
||||||
CTLX_REQ_COMPLETE, /* OUT URB complete */
|
CTLX_REQ_COMPLETE, /* OUT URB complete */
|
||||||
CTLX_RESP_COMPLETE /* IN URB received */
|
CTLX_RESP_COMPLETE /* IN URB received */
|
||||||
};
|
};
|
||||||
typedef enum ctlx_state CTLX_STATE;
|
|
||||||
|
|
||||||
struct hfa384x_usbctlx;
|
struct hfa384x_usbctlx;
|
||||||
struct hfa384x;
|
struct hfa384x;
|
||||||
|
@ -1186,7 +1185,7 @@ struct hfa384x_usbctlx {
|
||||||
union hfa384x_usbout outbuf; /* pkt buf for OUT */
|
union hfa384x_usbout outbuf; /* pkt buf for OUT */
|
||||||
union hfa384x_usbin inbuf; /* pkt buf for IN(a copy) */
|
union hfa384x_usbin inbuf; /* pkt buf for IN(a copy) */
|
||||||
|
|
||||||
CTLX_STATE state; /* Tracks running state */
|
enum ctlx_state state; /* Tracks running state */
|
||||||
|
|
||||||
struct completion done;
|
struct completion done;
|
||||||
volatile int reapable; /* Food for the reaper task */
|
volatile int reapable; /* Food for the reaper task */
|
||||||
|
|
|
@ -267,7 +267,7 @@ hfa384x_dowmem(struct hfa384x *hw,
|
||||||
|
|
||||||
static int hfa384x_isgood_pdrcode(u16 pdrcode);
|
static int hfa384x_isgood_pdrcode(u16 pdrcode);
|
||||||
|
|
||||||
static inline const char *ctlxstr(CTLX_STATE s)
|
static inline const char *ctlxstr(enum ctlx_state s)
|
||||||
{
|
{
|
||||||
static const char * const ctlx_str[] = {
|
static const char * const ctlx_str[] = {
|
||||||
"Initial state",
|
"Initial state",
|
||||||
|
|
Loading…
Reference in a new issue