[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 00/11] qdev: remove DeviceClass::init/exit()
From: |
Philippe Mathieu-Daudé |
Subject: |
[Qemu-devel] [PATCH 00/11] qdev: remove DeviceClass::init/exit() |
Date: |
Tue, 16 Jan 2018 10:15:44 -0300 |
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
- [Qemu-devel] [PATCH 00/11] qdev: remove DeviceClass::init/exit(),
Philippe Mathieu-Daudé <=