usb/dwc3: Use more () for macros variables

Suggested by:	andrew
Sponsored by:	Beckhoff Automation GmbH & Co. KG
This commit is contained in:
Emmanuel Vadot 2022-11-16 11:57:56 +01:00
parent 67c76a1ba7
commit 0860c27fe8

View File

@ -99,7 +99,7 @@
#define DWC3_GUSB2PHYCFG0_USBTRDTIM_8BITS 9
#define DWC3_GUSB2PHYCFG0_USBTRDTIM_16BITS 5
#define DWC3_GUSB2PHYCFG0_ENBLSLPM (1 << 8)
#define DWC3_GUSB2PHYCFG0_PHYSEL(x) ((x >> 7) & 0x1) /* 0 = USB2.0, 1 = USB1.1 */
#define DWC3_GUSB2PHYCFG0_PHYSEL(x) (((x) >> 7) & 0x1) /* 0 = USB2.0, 1 = USB1.1 */
#define DWC3_GUSB2PHYCFG0_SUSPENDUSB20 (1 << 6)
#define DWC3_GUSB2PHYCFG0_ULPI_UTMI_SEL (1 << 4)
#define DWC3_GUSB2PHYCFG0_PHYIF (1 << 3)
@ -110,7 +110,7 @@
#define DWC3_GUSB3PIPECTL0_DELAYP1TRANS (1 << 18)
#define DWC3_GUSB3PIPECTL0_SUSPENDUSB3 (1 << 17)
#define DWC3_HWPARAMS3_SSPHY(x) (x & 0x3)
#define DWC3_HWPARAMS3_SSPHY(x) ((x) & 0x3)
#define DWC3_HWPARAMS3_SSPHY_DISABLE 0
#define DWC3_HWPARAMS3_SSPHY_GEN1 1
#define DWC3_HWPARAMS3_SSPHY_GEN2 2