usb: dwc3: gadget: cmd argument should always be unsigned
authorFelipe Balbi <balbi@ti.com>
Fri, 5 Sep 2014 14:47:44 +0000 (09:47 -0500)
committerFelipe Balbi <balbi@ti.com>
Fri, 5 Sep 2014 14:54:00 +0000 (09:54 -0500)
No functional changes, just making sure we're dealing
with unsigned ints.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c

index 48fb264065db3218ef43f7fe4cdfe7f2245ae84d..c1237453465ec0cef5b8a826bc31b356359e6d80 100644 (file)
@@ -938,7 +938,7 @@ 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 *dwc, unsigned ep,
                unsigned cmd, struct dwc3_gadget_ep_cmd_params *params);
-int dwc3_send_gadget_generic_command(struct dwc3 *dwc, int cmd, u32 param);
+int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param);
 #else
 static inline int dwc3_gadget_init(struct dwc3 *dwc)
 { return 0; }
index 77c49a60a297e5b5d83c7795c824eff43647616c..096b63838dc059ca45bef69a6dc850590b666875 100644 (file)
@@ -273,7 +273,7 @@ void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
        spin_lock(&dwc->lock);
 }
 
-int dwc3_send_gadget_generic_command(struct dwc3 *dwc, int cmd, u32 param)
+int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param)
 {
        u32             timeout = 500;
        u32             reg;