qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/7] qdev: remove DeviceClass::init/exit()
@ 2018-01-22 12:03 Philippe Mathieu-Daudé
  2018-01-22 12:03 ` [Qemu-devel] [PATCH v2 1/7] hw/i2c/smbus: use DeviceClass::realize instead of SMBusDeviceClass::init Philippe Mathieu-Daudé
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-01-22 12:03 UTC (permalink / raw)
  To: Eduardo Habkost, Paolo Bonzini
  Cc: Philippe Mathieu-Daudé, qemu-devel, Markus Armbruster,
	Peter Maydell, Thomas Huth

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 get one less TODO :)

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

There is still one standing in SysBusDeviceClass::init().

Regards,

Phil.

Philippe Mathieu-Daudé (7):
  hw/i2c/smbus: use DeviceClass::realize instead of SMBusDeviceClass::init
  hw/i2c: use DeviceClass::realize instead of I2CSlaveClass::init
  usb-ccid: convert CCIDCardClass::init -> realize
  virtio-ccw: convert VirtIOCCWDeviceClass::exit -> unrealize
  qdev: simplify the SysBusDeviceClass::init path
  qdev: remove DeviceClass::exit
  qdev: rename typedef qdev_resetfn() -> DeviceReset()

 include/hw/i2c/i2c.h          |  3 ---
 include/hw/i2c/smbus.h        |  1 -
 include/hw/qdev-core.h        |  8 ++----
 hw/s390x/virtio-ccw.h         |  2 +-
 hw/usb/ccid.h                 |  9 +++++--
 hw/audio/wm8750.c             |  8 +++---
 hw/core/qdev.c                | 28 ---------------------
 hw/core/sysbus.c              | 15 ++++++++----
 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/s390x/virtio-ccw.c         | 35 +++++++++++++-------------
 hw/timer/twl92230.c           | 11 +++------
 hw/usb/ccid-card-emulated.c   | 45 ++++++++++++++++++----------------
 hw/usb/ccid-card-passthru.c   | 10 ++++----
 hw/usb/dev-smartcard-reader.c | 57 +++++++++++++++----------------------------
 22 files changed, 124 insertions(+), 201 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-01-31 13:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-22 12:03 [Qemu-devel] [PATCH v2 0/7] qdev: remove DeviceClass::init/exit() Philippe Mathieu-Daudé
2018-01-22 12:03 ` [Qemu-devel] [PATCH v2 1/7] hw/i2c/smbus: use DeviceClass::realize instead of SMBusDeviceClass::init Philippe Mathieu-Daudé
2018-01-22 12:03 ` [Qemu-devel] [PATCH v2 2/7] hw/i2c: use DeviceClass::realize instead of I2CSlaveClass::init Philippe Mathieu-Daudé
2018-01-22 12:03 ` [Qemu-devel] [PATCH v2 3/7] usb-ccid: convert CCIDCardClass::init -> realize Philippe Mathieu-Daudé
2018-01-25 15:25   ` Gerd Hoffmann
2018-01-31 13:43   ` Markus Armbruster
2018-01-22 12:03 ` [Qemu-devel] [PATCH v2 4/7] virtio-ccw: convert VirtIOCCWDeviceClass::exit -> unrealize Philippe Mathieu-Daudé
2018-01-22 12:03 ` [Qemu-devel] [PATCH v2 5/7] qdev: simplify the SysBusDeviceClass::init path Philippe Mathieu-Daudé
2018-01-22 12:03 ` [Qemu-devel] [PATCH v2 6/7] qdev: remove DeviceClass::exit Philippe Mathieu-Daudé
2018-01-22 12:03 ` [Qemu-devel] [PATCH v2 7/7] qdev: rename typedef qdev_resetfn() -> DeviceReset() Philippe Mathieu-Daudé
2018-01-31 13:42 ` [Qemu-devel] [PATCH v2 0/7] qdev: remove DeviceClass::init/exit() Markus Armbruster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).