]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
usb: dwc3: Remove BIT(x) macro from DWC3's gadget code
authorLukasz Majewski <l.majewski@samsung.com>
Tue, 3 Mar 2015 16:32:08 +0000 (17:32 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 14 Apr 2015 03:48:12 +0000 (05:48 +0200)
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>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c

index c5debf7d28e58ec82e53aaec6dc302765e2a365e..5288a18c81864ea7eab98b8073d878df62ee557f 100644 (file)
@@ -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;
 
index c8b749915c2ba690f9a74c2194960917d33faa86..de4d90859c5002d87047890cb6dbc4dddcde10eb 100644 (file)
@@ -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