Hi, When I read the qom doc (qom.rst) about OBJECT_DECLARE_SIMPLE_TYPE, I found there's the wrong example. So I tried to fix the doc and cleaned up the relevant code case to correctly show that for simple type, the class definition is not needed.
This series tries to: * fix & improve the documentation of OBJECT_{DEFINE|DECLARE}_SIMPLE_TYPE*, * and clean up several cases that could have used simple type macros (mainly by dropping unneeded class definitions). Thanks and Best Regards, Zhao --- Zhao Liu (9): qom/object: Improve the doc of macros related with simple type docs/devel/qom: Fix the doc about OBJECT_DECLARE_SIMPLE_TYPE hw/acpi/pci: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES hw/char/sh_serial: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES hw/hyperv/hv-balloon: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES hw/ppc/pef: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES hw/core/resetcontainer: Consolidate OBJECT_DECLARE_SIMPLE_TYPE target/s390x/kvm/pv: Consolidate OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES ui/console-vc: Consolidate OBJECT_DEFINE_SIMPLE_TYPE docs/devel/qom.rst | 11 +---------- hw/acpi/pci.c | 24 ++++++++---------------- hw/char/sh_serial.c | 4 +--- hw/hyperv/hv-balloon.c | 8 ++------ hw/ppc/pef.c | 17 ++++++----------- include/hw/core/resetcontainer.h | 2 +- include/qom/object.h | 5 +++-- target/s390x/kvm/pv.c | 18 ++++++------------ ui/console-vc.c | 14 ++++++++------ 9 files changed, 36 insertions(+), 67 deletions(-) -- 2.34.1