Skip to content

hw/audio: 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 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hw/audio/hda-codec: Avoid forward-declaring HDAAudioStatehw/audio/hda-codec.c+3 -41 reply
2/5hw/audio/es1370: Avoid forward-declaring ES1370Statehw/audio/es1370.c+3 -41 reply
3/5hw/audio/es1370: Replace container_of() by ES1370() QOM cast macrohw/audio/es1370.c+2 -11 reply
4/5hw/audio/ac97: Replace container_of() by AC97() QOM cast macrohw/audio/ac97.c+1 -11 reply
5/5hw/audio/pcspk: Open-code pcspk_init()hw/i386/pc.c hw/isa/i82378.c hw/mips/jazz.c +1 more+10 -130 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5

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/5] hw/audio: Cleanups around QOM style

- Use QOM's OBJECT_DECLARE*TYPE() to declare typedef / macros
- Use QOM cast macros instead of container_of()
- Open-code QDev helpers used few times

Philippe Mathieu-Daudé (5):
hw/audio/hda-codec: Avoid forward-declaring HDAAudioState hw/audio/es1370: Avoid forward-declaring ES1370State hw/audio/es1370: Replace container_of() by ES1370() QOM cast macro hw/audio/ac97: Replace container_of() by AC97() QOM cast macro hw/audio/pcspk: Open-code pcspk_init()

 hw/audio/ac97.c          |  2 +-
 hw/audio/es1370.c        | 10 +++++-----
 hw/audio/hda-codec.c     |  7 +++----
 hw/i386/pc.c             |  3 ++-
 hw/isa/i82378.c          |  5 ++++-
 hw/mips/jazz.c           |  5 ++++-
 include/hw/audio/pcspk.h | 10 ----------
 7 files changed, 19 insertions(+), 23 deletions(-)
Signature · 1 line
2.38.1