qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/11] qdev: remove DeviceClass::init/exit()
@ 2018-01-16 13:15 Philippe Mathieu-Daudé
  2018-01-16 13:15 ` [Qemu-devel] [PATCH 01/11] smbus: add a NULL check for SMBusDeviceClass::init callbacks Philippe Mathieu-Daudé
                   ` (11 more replies)
  0 siblings, 12 replies; 28+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-01-16 13:15 UTC (permalink / raw)
  To: Eduardo Habkost, Markus Armbruster, Peter Maydell, Paolo Bonzini,
	Eric Blake, Marcel Apfelbaum
  Cc: Philippe Mathieu-Daudé, qemu-devel, Cornelia Huck,
	Christian Borntraeger, Michael S. Tsirkin, Corey Minyard,
	Gerd Hoffmann, David Gibson, Dr. David Alan Gilbert, Thomas Huth,
	Cédric Le Goater

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é (11):
  smbus: add a NULL check for SMBusDeviceClass::init callbacks
  smbus_eeprom: replace SMBusDeviceClass::init by DeviceClass::reset
  hw/i2c: convert I2CSlaveClass::init -> realize
  usb-ccid: convert CCIDCardClass::init -> realize
  virtio-ccw: convert VirtIOCCWDeviceClass::init -> realize
  sysbus: add realize() and unrealize()
  qdev: simplify the SysBusDeviceClass::init path
  qdev: remove DeviceClass::init
  qdev: remove DeviceClass::exit
  qdev: remove empty realize/unrealize stubs
  qdev: rename typedef qdev_resetfn() -> DeviceReset()

 hw/s390x/virtio-ccw.h         |  2 +-
 hw/usb/ccid.h                 |  9 +++++--
 include/hw/i2c/i2c.h          |  2 +-
 include/hw/i2c/smbus.h        |  2 +-
 include/hw/qdev-core.h        |  8 ++----
 include/hw/sysbus.h           |  4 +++
 hw/audio/wm8750.c             |  8 +++---
 hw/core/qdev.c                | 28 ---------------------
 hw/core/sysbus.c              | 30 +++++++++++++++++++----
 hw/display/ssd0303.c          |  5 ++--
 hw/gpio/max7310.c             |  6 ++---
 hw/i2c/core.c                 | 10 +++-----
 hw/i2c/smbus.c                |  8 +++---
 hw/i2c/smbus_eeprom.c         |  5 ++--
 hw/input/lm832x.c             |  5 ++--
 hw/misc/tmp105.c              |  6 ++---
 hw/misc/tmp421.c              |  6 ++---
 hw/nvram/eeprom_at24c.c       | 24 +++++++++---------
 hw/s390x/virtio-ccw.c         | 35 +++++++++++++-------------
 hw/timer/twl92230.c           | 12 ++++-----
 hw/usb/ccid-card-emulated.c   | 42 ++++++++++++++++---------------
 hw/usb/ccid-card-passthru.c   | 10 ++++----
 hw/usb/dev-smartcard-reader.c | 57 +++++++++++++++----------------------------
 23 files changed, 145 insertions(+), 179 deletions(-)

-- 
2.15.1

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

end of thread, other threads:[~2018-01-19 21:41 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-16 13:15 [Qemu-devel] [PATCH 00/11] qdev: remove DeviceClass::init/exit() Philippe Mathieu-Daudé
2018-01-16 13:15 ` [Qemu-devel] [PATCH 01/11] smbus: add a NULL check for SMBusDeviceClass::init callbacks Philippe Mathieu-Daudé
2018-01-19 17:58   ` Eduardo Habkost
2018-01-16 13:15 ` [Qemu-devel] [PATCH 02/11] smbus_eeprom: replace SMBusDeviceClass::init by DeviceClass::reset Philippe Mathieu-Daudé
2018-01-19 18:15   ` Eduardo Habkost
2018-01-19 21:41     ` Philippe Mathieu-Daudé
2018-01-16 13:15 ` [Qemu-devel] [PATCH 03/11] hw/i2c: convert I2CSlaveClass::init -> realize Philippe Mathieu-Daudé
2018-01-16 14:09   ` Philippe Mathieu-Daudé
2018-01-19 18:18   ` Eduardo Habkost
2018-01-19 18:53     ` Philippe Mathieu-Daudé
2018-01-16 13:15 ` [Qemu-devel] [PATCH 04/11] usb-ccid: convert CCIDCardClass::init " Philippe Mathieu-Daudé
2018-01-18 17:05   ` Philippe Mathieu-Daudé
2018-01-16 13:15 ` [Qemu-devel] [PATCH 05/11] virtio-ccw: convert VirtIOCCWDeviceClass::init " Philippe Mathieu-Daudé
2018-01-16 13:41   ` Farhan Ali
2018-01-16 14:07     ` Philippe Mathieu-Daudé
2018-01-16 16:11       ` Farhan Ali
2018-01-16 16:52   ` Cornelia Huck
2018-01-17 12:30     ` Philippe Mathieu-Daudé
2018-01-16 13:15 ` [Qemu-devel] [PATCH 06/11] sysbus: add realize() and unrealize() Philippe Mathieu-Daudé
2018-01-19 18:03   ` Eduardo Habkost
2018-01-19 19:03     ` Philippe Mathieu-Daudé
2018-01-16 13:15 ` [Qemu-devel] [PATCH 07/11] qdev: simplify the SysBusDeviceClass::init path Philippe Mathieu-Daudé
2018-01-19 18:24   ` Eduardo Habkost
2018-01-16 13:15 ` [Qemu-devel] [PATCH 08/11] qdev: remove DeviceClass::init Philippe Mathieu-Daudé
2018-01-16 13:15 ` [Qemu-devel] [PATCH 09/11] qdev: remove DeviceClass::exit Philippe Mathieu-Daudé
2018-01-16 13:15 ` [Qemu-devel] [PATCH 10/11] qdev: remove empty realize/unrealize stubs Philippe Mathieu-Daudé
2018-01-16 13:15 ` [Qemu-devel] [PATCH 11/11] qdev: rename typedef qdev_resetfn() -> DeviceReset() Philippe Mathieu-Daudé
2018-01-17  5:45 ` [Qemu-devel] [PATCH 00/11] qdev: remove DeviceClass::init/exit() no-reply

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).