Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp582820ybb; Wed, 25 Mar 2020 05:51:18 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtKWPZHYDcGEBqtLO4aHpvIEDVMdEz0LcE7xPeIp0mTwqSye+rj2byGvVaskvR4Nvt9Fkwp X-Received: by 2002:a4a:8041:: with SMTP id y1mr380266oof.65.1585140677880; Wed, 25 Mar 2020 05:51:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585140677; cv=none; d=google.com; s=arc-20160816; b=wvkNxYQqIA6+1QW/Fpyf0SjHw4wE7vrsT5K2QGk+dLBRbT2MDpB1FErsS6AqIM6G1z eXLiP9Rpvtlrp4UougRaeH60oihmxTf9W0KWx1gIOBgHRqGtujXzy/6s8Qxtf7YLaeGo J/kxWzMF8+w3IkMQYqpipelTxpoS4NgmKq3MRXhgwTuKk1v50nRExj7Aw4lUlIW1BZzv Y7rIbbtoBFmTlfqudX/vsanicASSIdU8mVsC2KBKChhcMqN7adDRfzzuIb5LAzOSrTHN 5LHVsYG+eaZdBMXXD9qHFeDb5JdiR8ISmVlC9Fuz143ssJhQDgyCHnBet+B+BYmNYQE7 yRdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=TaAjV6KOvCF9pTgL9XkEfgi2Mvi7sXXb+MPixHLQIJQ=; b=F4xdWwbTMkOzsT0oZnOjDZzHRVh1iKr7gRnf5IGEzoHc5JXH/Ezei6xOM66EygGYHa MNINmaM7P/TLXpm0hT2dNOSCdwJl81ciZqvFk66pp70FL2dLvpPMQT2BqEtziQhBTZUF 8+jU89K23Ve6MdMLhIum5CUulAN/asgy7C/bL54Fbi83SY38MNBNls8wivTM9m7EGxbX tYpH1613+AscMlxp2FTwLx4gGkRgBTKdh+vpNj91jzCtkzwCWGIEHet/sJrSNKKA8Xo2 q24I1497cYApHzq+BY8W79tccn/Q7QIUy3Mux35lX9H3RWp8QXtlMnf4cmt48HycR+je 6KVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 110si4747871otu.45.2020.03.25.05.51.06; Wed, 25 Mar 2020 05:51:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727400AbgCYMur (ORCPT + 99 others); Wed, 25 Mar 2020 08:50:47 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:53355 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726998AbgCYMur (ORCPT ); Wed, 25 Mar 2020 08:50:47 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jH5UX-0005f3-9Y; Wed, 25 Mar 2020 12:50:41 +0000 From: Colin King To: Greg Kroah-Hartman , Sekhar Nori , Roger Quadros , Felipe Balbi , Pawel Laszczak , linux-usb@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] usb: cdns3: make signed 1 bit bitfields unsigned Date: Wed, 25 Mar 2020 12:50:41 +0000 Message-Id: <20200325125041.94769-1-colin.king@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The signed 1 bit bitfields should be unsigned, so make them unsigned. Signed-off-by: Colin Ian King --- drivers/usb/cdns3/cdns3-ti.c | 4 ++-- drivers/usb/cdns3/gadget.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c index c6a79ca15858..5685ba11480b 100644 --- a/drivers/usb/cdns3/cdns3-ti.c +++ b/drivers/usb/cdns3/cdns3-ti.c @@ -52,8 +52,8 @@ enum modestrap_mode { USBSS_MODESTRAP_MODE_NONE, struct cdns_ti { struct device *dev; void __iomem *usbss; - int usb2_only:1; - int vbus_divider:1; + unsigned usb2_only:1; + unsigned vbus_divider:1; struct clk *usb2_refclk; struct clk *lpm_clk; }; diff --git a/drivers/usb/cdns3/gadget.h b/drivers/usb/cdns3/gadget.h index f003a7801872..bf2828e4df2c 100644 --- a/drivers/usb/cdns3/gadget.h +++ b/drivers/usb/cdns3/gadget.h @@ -1199,7 +1199,7 @@ struct cdns3_aligned_buf { void *buf; dma_addr_t dma; u32 size; - int in_use:1; + unsigned in_use:1; struct list_head list; }; @@ -1308,8 +1308,8 @@ struct cdns3_device { unsigned u2_allowed:1; unsigned is_selfpowered:1; unsigned setup_pending:1; - int hw_configured_flag:1; - int wake_up_flag:1; + unsigned hw_configured_flag:1; + unsigned wake_up_flag:1; unsigned status_completion_no_call:1; unsigned using_streams:1; int out_mem_is_allocated; -- 2.25.1