]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
usb: cdns3: make signed 1 bit bitfields unsigned
authorColin Ian King <colin.king@canonical.com>
Wed, 25 Mar 2020 12:50:41 +0000 (12:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2020 14:05:44 +0000 (15:05 +0100)
The signed 1 bit bitfields should be unsigned, so make them unsigned.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Link: https://lore.kernel.org/r/20200325125041.94769-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdns3-ti.c
drivers/usb/cdns3/gadget.h

index c6a79ca1585892e142a428bc68837aad9d5d2d52..5685ba11480bd1ab5126a5ccf89c3499bd86238e 100644 (file)
@@ -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;
 };
index f003a7801872acd277c3f45972a9039d5f89a8f8..52765b098b9e17f69ac96b4b9d0c5582d7f1ec9c 100644 (file)
@@ -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;