FROMGIT: dt-bindings: connector: Replace BIT macro with generic bit ops
BIT macro is not defined. Replace it with generic bit operations. Fixes: 630dce2810b9 ("dt-bindings: connector: Add SVDM VDO properties") Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Kyle Tso <kyletso@google.com> Link: https://lore.kernel.org/r/20210527121029.583611-1-kyletso@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 9257bd80b917cc7908abd27ed5a5211964563f62 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next) Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ie50316127234f5d9f154ed081989ffce5f383f45
This commit is contained in:
parent
505d41dcf1
commit
2d5c7aedc0
@ -167,10 +167,10 @@
|
||||
#define UFP_VDO_VER1_2 2
|
||||
|
||||
/* Device Capability */
|
||||
#define DEV_USB2_CAPABLE BIT(0)
|
||||
#define DEV_USB2_BILLBOARD BIT(1)
|
||||
#define DEV_USB3_CAPABLE BIT(2)
|
||||
#define DEV_USB4_CAPABLE BIT(3)
|
||||
#define DEV_USB2_CAPABLE (1 << 0)
|
||||
#define DEV_USB2_BILLBOARD (1 << 1)
|
||||
#define DEV_USB3_CAPABLE (1 << 2)
|
||||
#define DEV_USB4_CAPABLE (1 << 3)
|
||||
|
||||
/* Connector Type */
|
||||
#define UFP_RECEPTACLE 2
|
||||
@ -195,9 +195,9 @@
|
||||
|
||||
/* Alternate Modes */
|
||||
#define UFP_ALTMODE_NOT_SUPP 0
|
||||
#define UFP_ALTMODE_TBT3 BIT(0)
|
||||
#define UFP_ALTMODE_RECFG BIT(1)
|
||||
#define UFP_ALTMODE_NO_RECFG BIT(2)
|
||||
#define UFP_ALTMODE_TBT3 (1 << 0)
|
||||
#define UFP_ALTMODE_RECFG (1 << 1)
|
||||
#define UFP_ALTMODE_NO_RECFG (1 << 2)
|
||||
|
||||
/* USB Highest Speed */
|
||||
#define UFP_USB2_ONLY 0
|
||||
@ -221,9 +221,9 @@
|
||||
* <4:0> :: Port number
|
||||
*/
|
||||
#define DFP_VDO_VER1_1 1
|
||||
#define HOST_USB2_CAPABLE BIT(0)
|
||||
#define HOST_USB3_CAPABLE BIT(1)
|
||||
#define HOST_USB4_CAPABLE BIT(2)
|
||||
#define HOST_USB2_CAPABLE (1 << 0)
|
||||
#define HOST_USB3_CAPABLE (1 << 1)
|
||||
#define HOST_USB4_CAPABLE (1 << 2)
|
||||
#define DFP_RECEPTACLE 2
|
||||
#define DFP_CAPTIVE 3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user