Skip to content

Commit 70d8b9e

Browse files
Colin Ian Kinggregkh
authored andcommitted
usb: cdns3: make signed 1 bit bitfields unsigned
The signed 1 bit bitfields should be unsigned, so make them unsigned. Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Peter Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ad2d701 commit 70d8b9e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/usb/cdns3/cdns3-ti.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ enum modestrap_mode { USBSS_MODESTRAP_MODE_NONE,
5252
struct cdns_ti {
5353
struct device *dev;
5454
void __iomem *usbss;
55-
int usb2_only:1;
56-
int vbus_divider:1;
55+
unsigned usb2_only:1;
56+
unsigned vbus_divider:1;
5757
struct clk *usb2_refclk;
5858
struct clk *lpm_clk;
5959
};

drivers/usb/cdns3/gadget.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ struct cdns3_aligned_buf {
11991199
void *buf;
12001200
dma_addr_t dma;
12011201
u32 size;
1202-
int in_use:1;
1202+
unsigned in_use:1;
12031203
struct list_head list;
12041204
};
12051205

@@ -1308,8 +1308,8 @@ struct cdns3_device {
13081308
unsigned u2_allowed:1;
13091309
unsigned is_selfpowered:1;
13101310
unsigned setup_pending:1;
1311-
int hw_configured_flag:1;
1312-
int wake_up_flag:1;
1311+
unsigned hw_configured_flag:1;
1312+
unsigned wake_up_flag:1;
13131313
unsigned status_completion_no_call:1;
13141314
unsigned using_streams:1;
13151315
int out_mem_is_allocated;

0 commit comments

Comments
 (0)