Use OBJECT_DECLARE_TYPE when possible
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 16 Sep 2020 18:25:18 +0000 (14:25 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 18 Sep 2020 18:12:32 +0000 (14:12 -0400)
commita489d1951cd9cc91c5954214fcf6ae0f9d2d4292
tree1b0c2f48420f830de630eae114d39dc88c3496f4
parent30b5707c269cac1ad80b72f777e52c8e08b2ff19
Use OBJECT_DECLARE_TYPE when possible

This converts existing DECLARE_OBJ_CHECKERS usage to
OBJECT_DECLARE_TYPE when possible.

 $ ./scripts/codeconverter/converter.py -i \
   --pattern=AddObjectDeclareType $(git grep -l '' -- '*.[ch]')

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: C├ędric Le Goater <clg@kaod.org>
Acked-by: Paul Durrant <paul@xen.org>
Message-Id: <20200916182519.415636-5-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
69 files changed:
hw/arm/mps2-tz.c
hw/arm/mps2.c
hw/arm/musca.c
hw/arm/spitz.c
hw/arm/vexpress.c
hw/block/m25p80.c
hw/input/adb-kbd.c
hw/input/adb-mouse.c
hw/misc/tmp421.c
hw/ppc/e500.h
hw/s390x/ccw-device.h
hw/s390x/virtio-ccw.h
hw/scsi/scsi-disk.c
hw/scsi/vmw_pvscsi.c
hw/usb/ccid.h
hw/usb/hcd-dwc2.h
hw/usb/hcd-ehci.h
hw/virtio/virtio-pci.h
include/chardev/char.h
include/hw/arm/aspeed_soc.h
include/hw/arm/bcm2836.h
include/hw/arm/smmu-common.h
include/hw/arm/smmuv3.h
include/hw/arm/virt.h
include/hw/boards.h
include/hw/display/macfb.h
include/hw/gpio/aspeed_gpio.h
include/hw/i2c/aspeed_i2c.h
include/hw/i386/ioapic_internal.h
include/hw/i386/microvm.h
include/hw/i386/pc.h
include/hw/i386/x86-iommu.h
include/hw/i386/x86.h
include/hw/ide/internal.h
include/hw/input/adb.h
include/hw/isa/i8259_internal.h
include/hw/isa/isa.h
include/hw/mem/nvdimm.h
include/hw/misc/aspeed_scu.h
include/hw/misc/aspeed_sdmc.h
include/hw/misc/imx_ccm.h
include/hw/misc/mos6522.h
include/hw/pci-host/pnv_phb4.h
include/hw/pci/pci.h
include/hw/pci/pci_host.h
include/hw/pcmcia.h
include/hw/ppc/spapr.h
include/hw/qdev-core.h
include/hw/rtc/allwinner-rtc.h
include/hw/s390x/3270-ccw.h
include/hw/s390x/s390-virtio-ccw.h
include/hw/s390x/storage-attributes.h
include/hw/s390x/storage-keys.h
include/hw/s390x/tod.h
include/hw/scsi/scsi.h
include/hw/sd/allwinner-sdhost.h
include/hw/sd/sd.h
include/hw/ssi/aspeed_smc.h
include/hw/ssi/xilinx_spips.h
include/hw/timer/aspeed_timer.h
include/hw/timer/i8254.h
include/hw/usb.h
include/hw/virtio/virtio.h
include/hw/watchdog/wdt_aspeed.h
include/hw/xen/xen-block.h
include/hw/xen/xen-bus.h
include/net/can_host.h
include/net/filter.h
include/ui/console.h