From patchwork Fri Sep 5 14:56:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 36853 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 84020202A1 for ; Fri, 5 Sep 2014 14:57:21 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf67873424pdb.9 for ; Fri, 05 Sep 2014 07:57:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=JAsS8R590b1Lh9CxTeSGRFrmWU/LTNCU3SS3R/xUGH4=; b=DqEmqFvVEIGiZfe/+WUJz+U7YsdwnzY6rWdt0lvUEBJSCLxfm6J+vdVAaGEiBTB4N/ MIv034/ysiU5VSpXGbCqZN0/c+LGcvI4lLgapyrDagqe6/FtZylZ2VImozBJiLVxmgS4 YvMkBfXAp0ZYKiEZSVarLHvdLLxGGYrpJd8J4uDrG2GAHHuDgwAmkZXvQCMnv65Vwbwq NVbCGVNqm0N5xecEBSkJjzNT5ixPMXJ7k4rMrc9ZXgyzKTcLeKGNi+LMp9dMRlemhcTj uIYrSMxnw3SNx2L9L/pzt3kwdZEWLoftBGdOxDOTEV+lWH9ai5WpwecQF1wn/Li/0PKt 5RjQ== X-Gm-Message-State: ALoCoQkYqScdw0LQdgN6zedQpalpbuehw+mwI+8vZTHBrGd/FO8oekrt/wy6qG0p1VbSqoSM0O8+ X-Received: by 10.66.65.75 with SMTP id v11mr7036828pas.30.1409929036420; Fri, 05 Sep 2014 07:57:16 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.41 with SMTP id 38ls811303qgi.26.gmail; Fri, 05 Sep 2014 07:57:16 -0700 (PDT) X-Received: by 10.220.17.145 with SMTP id s17mr1309832vca.77.1409929036263; Fri, 05 Sep 2014 07:57:16 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id aw7si804930vdc.99.2014.09.05.07.57.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 07:57:14 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so12515911vcb.30 for ; Fri, 05 Sep 2014 07:57:14 -0700 (PDT) X-Received: by 10.220.97.5 with SMTP id j5mr11249688vcn.16.1409929034190; Fri, 05 Sep 2014 07:57:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp94623vcb; Fri, 5 Sep 2014 07:57:13 -0700 (PDT) X-Received: by 10.66.231.10 with SMTP id tc10mr22017411pac.121.1409929033382; Fri, 05 Sep 2014 07:57:13 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si4691303pdn.89.2014.09.05.07.57.12 for ; Fri, 05 Sep 2014 07:57:12 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932504AbaIEO4x (ORCPT + 2 others); Fri, 5 Sep 2014 10:56:53 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:39121 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757075AbaIEO4w (ORCPT ); Fri, 5 Sep 2014 10:56:52 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id s85Eumhw021250; Fri, 5 Sep 2014 09:56:48 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s85EumIt015352; Fri, 5 Sep 2014 09:56:48 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Fri, 5 Sep 2014 09:56:47 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s85EulKn006895; Fri, 5 Sep 2014 09:56:47 -0500 From: Felipe Balbi To: Linux USB Mailing List CC: Paul Zimmerman , , Felipe Balbi Subject: [PATCH 3/4] usb: dwc3: gadget: cmd argument should always be unsigned Date: Fri, 5 Sep 2014 09:56:25 -0500 Message-ID: <1409928986-8690-3-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.0.1.563.g66f467c In-Reply-To: <1409928986-8690-1-git-send-email-balbi@ti.com> References: <1409928986-8690-1-git-send-email-balbi@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: balbi@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , No functional changes, just making sure we're dealing with unsigned ints. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/core.h | 2 +- drivers/usb/dwc3/gadget.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 48fb264..c123745 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); 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; } diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 77c49a6..096b638 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, 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;