aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2019-10-16 13:53:53 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2019-10-16 13:53:53 +0000
commit3635891a92ce6fcadca6381eb83d83623236092c (patch)
tree53fa75fb85b50ba51ac638463d39fbfbbd4a43cf
parente8709d7d42282fa750ddc8f236e83d14ed83c078 (diff)
downloadsrc-3635891a92ce6fcadca6381eb83d83623236092c.tar.gz
src-3635891a92ce6fcadca6381eb83d83623236092c.zip
dwc3: Use a pair of ()'s around arguments for some macros
Reported by: hselasky MFC after: 1 week X-MFC-With: r353533
Notes
Notes: svn path=/head/; revision=353642
-rw-r--r--sys/dev/usb/controller/dwc3.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/dwc3.h b/sys/dev/usb/controller/dwc3.h
index f34ceb5d04ac..7153f9abf0df 100644
--- a/sys/dev/usb/controller/dwc3.h
+++ b/sys/dev/usb/controller/dwc3.h
@@ -92,8 +92,8 @@
#define DWC3_GUSB3PIPECTL0_PHYSOFTRST (1 << 31)
#define DWC3_GUSB3PIPECTL0_DELAYP1TRANS (1 << 18)
-#define DWC3_GTXFIFOSIZ(x) (0xc300 + 0x4 * x)
-#define DWC3_GRXFIFOSIZ(x) (0xc380 + 0x4 * x)
+#define DWC3_GTXFIFOSIZ(x) (0xc300 + 0x4 * (x))
+#define DWC3_GRXFIFOSIZ(x) (0xc380 + 0x4 * (x))
#define DWC3_GEVNTADRLO0 0xc400
#define DWC3_GEVNTADRHI0 0xc404
#define DWC3_GEVNTSIZ0 0xc408