Commit 87b923a2 authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: core: fix checkpatch warnings

no functional changes
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 9ae0eb45
......@@ -634,7 +634,7 @@ struct dwc3_trb;
struct dwc3_event_buffer {
void *buf;
void *cache;
unsigned length;
unsigned int length;
unsigned int lpos;
unsigned int count;
unsigned int flags;
......@@ -694,7 +694,7 @@ struct dwc3_ep {
struct dwc3 *dwc;
u32 saved_state;
unsigned flags;
unsigned int flags;
#define DWC3_EP_ENABLED BIT(0)
#define DWC3_EP_STALL BIT(1)
#define DWC3_EP_WEDGE BIT(2)
......@@ -894,9 +894,9 @@ struct dwc3_request {
struct scatterlist *sg;
struct scatterlist *start_sg;
unsigned num_pending_sgs;
unsigned int num_pending_sgs;
unsigned int num_queued_sgs;
unsigned remaining;
unsigned int remaining;
unsigned int status;
#define DWC3_REQUEST_STATUS_QUEUED 0
......@@ -909,11 +909,11 @@ struct dwc3_request {
struct dwc3_trb *trb;
dma_addr_t trb_dma;
unsigned num_trbs;
unsigned int num_trbs;
unsigned needs_extra_trb:1;
unsigned direction:1;
unsigned mapped:1;
unsigned int needs_extra_trb:1;
unsigned int direction:1;
unsigned int mapped:1;
};
/*
......@@ -1457,9 +1457,10 @@ void dwc3_gadget_exit(struct dwc3 *dwc);
int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode);
int dwc3_gadget_get_link_state(struct dwc3 *dwc);
int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd,
int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned int cmd,
struct dwc3_gadget_ep_cmd_params *params);
int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param);
int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd,
u32 param);
#else
static inline int dwc3_gadget_init(struct dwc3 *dwc)
{ return 0; }
......@@ -1473,7 +1474,7 @@ static inline int dwc3_gadget_set_link_state(struct dwc3 *dwc,
enum dwc3_link_state state)
{ return 0; }
static inline int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd,
static inline int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned int cmd,
struct dwc3_gadget_ep_cmd_params *params)
{ return 0; }
static inline int dwc3_send_gadget_generic_command(struct dwc3 *dwc,
......
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