Skip to content

hw/usb: Cleanups around QOM style

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9hw/usb/dev-smartcard-reader: Avoid forward-declaring CCIDBushw/usb/dev-smartcard-reader.c+3 -41 reply
2/9hw/usb/hcd-ohci: Use OHCIState type definitionhw/usb/hcd-ohci.c hw/usb/hcd-ohci.h+7 -51 reply
3/9hw/usb/hcd-ohci-pci: Use QOM type-safe cast conversion macrohw/usb/hcd-ohci-pci.c+2 -20 replies
4/9hw/usb/hcd-uhci: Declare QOM macros using OBJECT_DECLARE_TYPE()hw/usb/hcd-uhci.c hw/usb/hcd-uhci.h+1 -31 reply
5/9hw/usb/hcd-uhci: Replace container_of() by UHCI_GET_CLASS() QOM macrohw/usb/hcd-uhci.c+2 -31 reply
6/9hw/usb/hcd-xhci-nec: Declare QOM macros for NEC_XHCIhw/usb/hcd-xhci-nec.c+4 -21 reply
7/9hw/usb/hcd-xhci-nec: Replace container_of() by NEC_XHCI() QOM cast macrohw/usb/hcd-xhci-nec.c+1 -11 reply
8/9hw/usb/u2f: Declare QOM macros using OBJECT_DECLARE_TYPE()hw/usb/u2f.h+5 -111 reply
9/9hw/usb/u2f-passthru: Use QOM type-safe cast conversion macroshw/usb/u2f-passthru.c+4 -30 replies

Reviews trailers per patch

7 of 9 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/9R-b
2/9R-b
3/9
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] hw/usb: Cleanups around QOM style

- Use QOM's OBJECT_DECLARE*TYPE() to declare typedef / macros
- Use QOM cast macros instead of container_of()

Philippe Mathieu-Daudé (9):
hw/usb/dev-smartcard-reader: Avoid forward-declaring CCIDBus hw/usb/hcd-ohci: Use OHCIState type definition hw/usb/hcd-ohci-pci: Use QOM type-safe cast conversion macro hw/usb/hcd-uhci: Declare QOM macros using OBJECT_DECLARE_TYPE() hw/usb/hcd-uhci: Replace container_of() by UHCI_GET_CLASS() QOM macro hw/usb/hcd-xhci-nec: Declare QOM macros for NEC_XHCI hw/usb/hcd-xhci-nec: Replace container_of() by NEC_XHCI() QOM cast
macro
hw/usb/u2f: Declare QOM macros using OBJECT_DECLARE_TYPE() hw/usb/u2f-passthru: Use QOM type-safe cast conversion macros

 hw/usb/dev-smartcard-reader.c |  7 +++----
 hw/usb/hcd-ohci-pci.c         |  4 ++--
 hw/usb/hcd-ohci.c             |  2 +-
 hw/usb/hcd-ohci.h             | 10 ++++++----
 hw/usb/hcd-uhci.c             |  7 ++-----
 hw/usb/hcd-uhci.h             |  2 +-
 hw/usb/hcd-xhci-nec.c         |  8 +++++---
 hw/usb/u2f-passthru.c         |  7 ++++---
 hw/usb/u2f.h                  | 16 +++++-----------
 9 files changed, 29 insertions(+), 34 deletions(-)
Signature · 1 line
2.38.1