Convert field TCPC_MSG_HDR_INFO_REV from register TCPC_MSG_HDR_INFO to using GENMASK() and FIELD_PREP() so as to keep using a similar approach for all fields.
Showing the changes to include/linux/usb (1 of 2 files). Show all
Unified · Split
| @@ -129,9 +129,8 @@ · 128 unmodified lines | ||
| 129 | 129 | |
| 130 | 130 | #define TCPC_MSG_HDR_INFO 0x2e |
| 131 | 131 | #define TCPC_MSG_HDR_INFO_DATA_ROLE BIT(3) |
| 132 | +#define TCPC_MSG_HDR_INFO_REV GENMASK(2, 1) | |
| 132 | 133 | #define TCPC_MSG_HDR_INFO_PWR_ROLE BIT(0) |
| 133 | −#define TCPC_MSG_HDR_INFO_REV_SHIFT 1 | |
| 134 | −#define TCPC_MSG_HDR_INFO_REV_MASK 0x3 | |
| 135 | 134 | |
| 136 | 135 | #define TCPC_RX_DETECT 0x2f |
| 137 | 136 | #define TCPC_RX_DETECT_HARD_RESET BIT(5) |