diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/dwc3/core.h | 2 | ||||
-rw-r--r-- | 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 c5debf7d28..5288a18c81 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -392,7 +392,7 @@ struct dwc3_event_buffer { unsigned int count; unsigned int flags; -#define DWC3_EVENT_PENDING BIT(0) +#define DWC3_EVENT_PENDING (1UL << 0) dma_addr_t dma; diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index c8b749915c..de4d90859c 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2367,7 +2367,7 @@ static void dwc3_gadget_linksts_change_interrupt(struct dwc3 *dwc, static void dwc3_gadget_hibernation_interrupt(struct dwc3 *dwc, unsigned int evtinfo) { - unsigned int is_ss = evtinfo & BIT(4); + unsigned int is_ss = evtinfo & (1UL << 4); /** * WORKAROUND: DWC3 revison 2.20a with hibernation support |