public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/6] usb: Use FIELD_MODIFY() for bitfield operations
@ 2026-04-30 16:39 Hans Zhang
  2026-04-30 16:39 ` [PATCH 1/6] usb: dwc3: Use FIELD_MODIFY() Hans Zhang
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Hans Zhang @ 2026-04-30 16:39 UTC (permalink / raw)
  To: Thinh.Nguyen, gregkh, peter.griffin, andre.draszik, tudor.ambarus,
	mathias.nyman, chunfeng.yun, matthias.bgg,
	angelogioacchino.delregno, badhri, heikki.krogerus
  Cc: linux-usb, linux-kernel, linux-arm-kernel, linux-samsung-soc,
	linux-mediatek, Hans Zhang

Replace open-coded bitfield modifications with the standard FIELD_MODIFY()
macro across multiple USB drivers (dwc3, xhci, typec). This improves
readability and adds compile-time checking without functional changes.

---
Hi, If the Maintainers think it's not necessary, please ignore it.
---

Hans Zhang (6):
  usb: dwc3: Use FIELD_MODIFY()
  usb: dwc3: google: Use FIELD_MODIFY()
  usb: dwc3: dwc3-octeon: Use FIELD_MODIFY()
  usb: xhci: Use FIELD_MODIFY()
  usb: xhci-mtk: Use FIELD_MODIFY()
  usb: typec: Use FIELD_MODIFY()

 drivers/usb/dwc3/core.c        | 12 ++++--------
 drivers/usb/dwc3/dwc3-google.c |  5 ++---
 drivers/usb/dwc3/dwc3-octeon.c | 11 ++++-------
 drivers/usb/host/xhci-hub.c    |  5 ++---
 drivers/usb/host/xhci-mtk.c    |  6 +++---
 drivers/usb/typec/tcpm/tcpci.c | 11 ++++-------
 6 files changed, 19 insertions(+), 31 deletions(-)


base-commit: 3b3bea6d4b9c162f9e555905d96b8c1da67ecd5b
-- 
2.34.1



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-04-30 16:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30 16:39 [PATCH 0/6] usb: Use FIELD_MODIFY() for bitfield operations Hans Zhang
2026-04-30 16:39 ` [PATCH 1/6] usb: dwc3: Use FIELD_MODIFY() Hans Zhang
2026-04-30 16:39 ` [PATCH 2/6] usb: dwc3: google: " Hans Zhang
2026-04-30 16:39 ` [PATCH 3/6] usb: dwc3: dwc3-octeon: " Hans Zhang
2026-04-30 16:39 ` [PATCH 4/6] usb: xhci: " Hans Zhang
2026-04-30 16:39 ` [PATCH 5/6] usb: xhci-mtk: " Hans Zhang
2026-04-30 16:39 ` [PATCH 6/6] usb: typec: " Hans Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox