mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
usb: xhci: Use FIELD_MODIFY()
Use FIELD_MODIFY() to remove open-coded bit manipulation. No functional change intended. Signed-off-by: Hans Zhang <18255117159@163.com> Link: https://patch.msgid.link/20260430163919.47372-5-18255117159@163.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b45172f4f6
commit
ac66a00ed2
|
|
@ -226,9 +226,8 @@ static int xhci_create_usb3x_bos_desc(struct xhci_hcd *xhci, char *buf,
|
|||
USB_SSP_SUBLINK_SPEED_ST_SYM_RX);
|
||||
ssp_cap->bmSublinkSpeedAttr[offset++] = cpu_to_le32(attr);
|
||||
|
||||
attr &= ~USB_SSP_SUBLINK_SPEED_ST;
|
||||
attr |= FIELD_PREP(USB_SSP_SUBLINK_SPEED_ST,
|
||||
USB_SSP_SUBLINK_SPEED_ST_SYM_TX);
|
||||
FIELD_MODIFY(USB_SSP_SUBLINK_SPEED_ST, &attr,
|
||||
USB_SSP_SUBLINK_SPEED_ST_SYM_TX);
|
||||
ssp_cap->bmSublinkSpeedAttr[offset++] = cpu_to_le32(attr);
|
||||
break;
|
||||
case PLT_ASYM_RX:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user