aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-09-05 10:47:44 -0400
committerFelipe Balbi <balbi@ti.com>2014-09-05 10:54:00 -0400
commit3ece0ec474bf3cea9eefa7f92e3d4b6c3f9f71fd (patch)
tree4a91ef4fe2051e38f8f03b5a4776aeff830b1a04
parente996061b9632d2ac7d00112208c644328c2411d5 (diff)
usb: dwc3: gadget: cmd argument should always be unsigned
No functional changes, just making sure we're dealing with unsigned ints. Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/dwc3/core.h2
-rw-r--r--drivers/usb/dwc3/gadget.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index 48fb264065db..c1237453465e 100644
--- a/drivers/usb/dwc3/core.h
+++ b/drivers/usb/dwc3/core.h
@@ -938,7 +938,7 @@ int dwc3_gadget_get_link_state(struct dwc3 *dwc);
938int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state); 938int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state);
939int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, 939int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep,
940 unsigned cmd, struct dwc3_gadget_ep_cmd_params *params); 940 unsigned cmd, struct dwc3_gadget_ep_cmd_params *params);
941int dwc3_send_gadget_generic_command(struct dwc3 *dwc, int cmd, u32 param); 941int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param);
942#else 942#else
943static inline int dwc3_gadget_init(struct dwc3 *dwc) 943static inline int dwc3_gadget_init(struct dwc3 *dwc)
944{ return 0; } 944{ return 0; }
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 77c49a60a297..096b63838dc0 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -273,7 +273,7 @@ void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
273 spin_lock(&dwc->lock); 273 spin_lock(&dwc->lock);
274} 274}
275 275
276int dwc3_send_gadget_generic_command(struct dwc3 *dwc, int cmd, u32 param) 276int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param)
277{ 277{
278 u32 timeout = 500; 278 u32 timeout = 500;
279 u32 reg; 279 u32 reg;