hw/audio: Cleanups around QOM style
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | hw/audio/hda-codec: Avoid forward-declaring HDAAudioStatehw/ | +3 | 1 reply | |
| 2/5 | hw/audio/es1370: Avoid forward-declaring ES1370Statehw/ | +3 | 1 reply | |
| 3/5 | hw/audio/es1370: Replace container_of() by ES1370() QOM cast macrohw/ | +2 | 1 reply | |
| 4/5 | hw/audio/ac97: Replace container_of() by AC97() QOM cast macrohw/ | +1 | 1 reply | |
| 5/5 | hw/audio/pcspk: Open-code pcspk_init()hw/ hw/ hw/ +1 more | +10 | 0 replies |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Richard Henderson |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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