summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2017-06-26 21:34:13 +0200
committerMartin Roth <martinroth@google.com>2017-06-27 16:51:30 +0000
commitb09822cf82798f78554971b62f236acc3ba3a28d (patch)
treed0001741338a54fbe9e64ccce02d3c044f8ec145 /payloads
parent18437c46bd4761f3772736e5eb9e6b4cd4de8955 (diff)
downloadcoreboot-b09822cf82798f78554971b62f236acc3ba3a28d.tar.xz
libpayload/drivers/usb/ohci_private.h: Add brackets around macro
Change-Id: Id4892adba161cd08eecde71a011384b6c465b98f Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/20372 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/drivers/usb/ohci_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/drivers/usb/ohci_private.h b/payloads/libpayload/drivers/usb/ohci_private.h
index e912837413..07bb20dd51 100644
--- a/payloads/libpayload/drivers/usb/ohci_private.h
+++ b/payloads/libpayload/drivers/usb/ohci_private.h
@@ -234,8 +234,8 @@
#define TD_DIRECTION_SHIFT 19
#define TD_DIRECTION_MASK MASK(TD_DIRECTION_SHIFT, 2)
-#define TD_DIRECTION_SETUP OHCI_SETUP << TD_DIRECTION_SHIFT
-#define TD_DIRECTION_IN OHCI_IN << TD_DIRECTION_SHIFT
+#define TD_DIRECTION_SETUP (OHCI_SETUP << TD_DIRECTION_SHIFT)
+#define TD_DIRECTION_IN (OHCI_IN << TD_DIRECTION_SHIFT)
#define TD_DIRECTION_OUT OHCI_OUT << TD_DIRECTION_SHIFT
#define TD_DELAY_INTERRUPT_SHIFT 21
#define TD_DELAY_INTERRUPT_MASK MASK(TD_DELAY_INTERRUPT_SHIFT, 3)