summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2015-03-03 17:32:08 +0100
committerMarek Vasut <marex@denx.de>2015-04-14 05:48:12 +0200
commit2252d150efac460dc2494a4a12505d366e645232 (patch)
tree64a2857b8097839f5562d3dacbc6faa01faa8116 /drivers/usb
parent6d691732073f79138648fc6e8ad1569f7a2898a6 (diff)
downloadu-boot-imx-2252d150efac460dc2494a4a12505d366e645232.zip
u-boot-imx-2252d150efac460dc2494a4a12505d366e645232.tar.gz
u-boot-imx-2252d150efac460dc2494a4a12505d366e645232.tar.bz2
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc3/core.h2
-rw-r--r--drivers/usb/dwc3/gadget.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
index c5debf7..5288a18 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 c8b7499..de4d908 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