Skip to content

qdev: remove DeviceClass::init/exit()

Markus Armbruster qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest4 patches 2 repliesIn review

Changes in v4 from the cover letter

* PATCH 1+2 unchanged
* PATCH 3+4 reshuffled a bit, missing documentation updates supplied

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/i2c/smbus: Use DeviceClass::realize instead of SMBusDeviceClass::inithw/i2c/smbus.c hw/i2c/smbus_eeprom.c include/hw/i2c/smbus.h+2 -130 replies
2/4hw/i2c: Use DeviceClass::realize instead of I2CSlaveClass::inithw/audio/wm8750.c hw/display/ssd0303.c hw/gpio/max7310.c +7 more+36 -650 replies
3/4qdev: Simplify the SysBusDeviceClass::init pathhw/core/sysbus.c+8 -40 replies
4/4qdev: Remove DeviceClass::init() and ::exit()hw/core/qdev.c include/hw/qdev-core.h+4 -440 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMarkus Armbruster
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/4] qdev: remove DeviceClass::init/exit()

This lovely series got stuck after v3, so I took the liberty to respin it.

v4:
* PATCH 1+2 unchanged
* PATCH 3+4 reshuffled a bit, missing documentation updates supplied

Philippe's cover letter:

Since v2:
- rebased for 2.13 (Markus)
- dropped 2 patches already merged (Gerd)
- start sentences with a capital letter and end with a full stop (Peter)

since v1:
- fix format string on 32-bit host (patchew)
- do not add smbus_eeprom_reset() (Eduardo)
- directly use DeviceClass::realize (Eduardo)
- squashed 2 patches (Eduardo)

Hi,

This series finalize the qdev QOMification.

We first convert the I2CSlave/SMBusDevice,
then the usb-ccid and virtio-ccw,
and finally the SysBusDevice.

At the end we removed *TWO* TODO :)

    /* TODO remove, once users are converted to realize */
    /* TODO remove, once users are converted to unrealize */

Philippe Mathieu-Daudé (4):
hw/i2c/smbus: Use DeviceClass::realize instead of
SMBusDeviceClass::init
hw/i2c: Use DeviceClass::realize instead of I2CSlaveClass::init
qdev: Simplify the SysBusDeviceClass::init path
qdev: Remove DeviceClass::init() and ::exit()

 hw/audio/wm8750.c       |  8 +++-----
 hw/core/qdev.c          | 28 ----------------------------
 hw/core/sysbus.c        | 12 ++++++++----
 hw/display/ssd0303.c    |  9 ++++-----
 hw/gpio/max7310.c       |  9 ++++-----
 hw/i2c/core.c           | 13 -------------
 hw/i2c/smbus.c          |  9 ---------
 hw/i2c/smbus_eeprom.c   |  5 ++---
 hw/input/lm832x.c       |  9 ++++-----
 hw/misc/tmp105.c        |  7 +++----
 hw/misc/tmp421.c        |  8 +++-----
 hw/nvram/eeprom_at24c.c | 24 +++++++++++-------------
 hw/timer/twl92230.c     | 11 ++++-------
 include/hw/i2c/i2c.h    |  3 ---
 include/hw/i2c/smbus.h  |  1 -
 include/hw/qdev-core.h  | 20 ++++----------------
 16 files changed, 50 insertions(+), 126 deletions(-)
Signature · 1 line
2.13.6