mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-06 09:21:26 +01:00
usb: dwc3: Remove BIT(x) macro from DWC3's gadget code
The BIT() macro is used only in those places, so it is reasonable to replace it by a constant value. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
This commit is contained in:
parent
6d69173207
commit
2252d150ef
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue