Make all static TypeInfos const
authorAndreas Färber <afaerber@suse.de>
Thu, 10 Jan 2013 15:19:07 +0000 (16:19 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 10 Jan 2013 21:11:53 +0000 (15:11 -0600)
commit8c43a6f05d5ef3c9484bd2be9d4e818d58e62016
tree900e988283ce06cb52a98d203cd910093c39509d
parenta6308bc2224db238e72c570482717b68246a7ce0
Make all static TypeInfos const

Since 39bffca2030950ef6efe57c2fac8327a45ae1015 (qdev: register all
types natively through QEMU Object Model), TypeInfo as used in
the common, non-iterative pattern is no longer amended with information
and should therefore be const.

Fix the documented QOM examples:

 sed -i 's/static TypeInfo/static const TypeInfo/g' include/qom/object.h

Since frequently the wrong examples are being copied by contributors of
new devices, fix all types in the tree:

 sed -i 's/^static TypeInfo/static const TypeInfo/g' */*.c
 sed -i 's/^static TypeInfo/static const TypeInfo/g' */*/*.c

This also avoids to piggy-back these changes onto real functional
changes or other refactorings.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
252 files changed:
backends/rng-egd.c
backends/rng-random.c
backends/rng.c
hw/9pfs/virtio-9p-device.c
hw/a15mpcore.c
hw/a9mpcore.c
hw/ac97.c
hw/acpi_piix4.c
hw/ads7846.c
hw/apb_pci.c
hw/apic.c
hw/apic_common.c
hw/applesmc.c
hw/arm11mpcore.c
hw/arm_gic.c
hw/arm_gic_common.c
hw/arm_l2x0.c
hw/arm_mptimer.c
hw/arm_sysctl.c
hw/arm_timer.c
hw/armv7m.c
hw/armv7m_nvic.c
hw/bitbang_i2c.c
hw/cadence_gem.c
hw/cadence_ttc.c
hw/cadence_uart.c
hw/ccid-card-emulated.c
hw/ccid-card-passthru.c
hw/cirrus_vga.c
hw/cs4231.c
hw/cs4231a.c
hw/debugcon.c
hw/debugexit.c
hw/ds1225y.c
hw/ds1338.c
hw/e1000.c
hw/eccmemctl.c
hw/empty_slot.c
hw/es1370.c
hw/escc.c
hw/etraxfs_eth.c
hw/etraxfs_pic.c
hw/etraxfs_ser.c
hw/etraxfs_timer.c
hw/exynos4210_combiner.c
hw/exynos4210_fimd.c
hw/exynos4210_gic.c
hw/exynos4210_mct.c
hw/exynos4210_pmu.c
hw/exynos4210_pwm.c
hw/exynos4210_uart.c
hw/fdc.c
hw/fw_cfg.c
hw/g364fb.c
hw/grlib_apbuart.c
hw/grlib_gptimer.c
hw/grlib_irqmp.c
hw/gus.c
hw/hda-audio.c
hw/highbank.c
hw/hpet.c
hw/i2c.c
hw/i82374.c
hw/i82378.c
hw/i8254.c
hw/i8254_common.c
hw/i8259.c
hw/i8259_common.c
hw/ide/ahci.c
hw/ide/cmd646.c
hw/ide/ich.c
hw/ide/isa.c
hw/ide/piix.c
hw/ide/qdev.c
hw/ide/via.c
hw/imx_ccm.c
hw/imx_serial.c
hw/integratorcp.c
hw/intel-hda.c
hw/ioapic.c
hw/ioapic_common.c
hw/ioh3420.c
hw/isa-bus.c
hw/ivshmem.c
hw/jazz_led.c
hw/kvm/apic.c
hw/kvm/clock.c
hw/kvm/i8254.c
hw/kvm/i8259.c
hw/kvm/ioapic.c
hw/kvmvapic.c
hw/lan9118.c
hw/lance.c
hw/lm32_juart.c
hw/lm32_pic.c
hw/lm32_sys.c
hw/lm32_timer.c
hw/lm32_uart.c
hw/lm832x.c
hw/lsi53c895a.c
hw/m48t59.c
hw/macio.c
hw/marvell_88w8618_audio.c
hw/max111x.c
hw/max7310.c
hw/mc146818rtc.c
hw/milkymist-ac97.c
hw/milkymist-hpdmc.c
hw/milkymist-memcard.c
hw/milkymist-minimac2.c
hw/milkymist-pfpu.c
hw/milkymist-softusb.c
hw/milkymist-sysctl.c
hw/milkymist-tmu2.c
hw/milkymist-uart.c
hw/milkymist-vgafb.c
hw/mips_malta.c
hw/mipsnet.c
hw/mpc8544_guts.c
hw/mst_fpga.c
hw/musicpal.c
hw/nand.c
hw/ne2000-isa.c
hw/ne2000.c
hw/omap_gpio.c
hw/omap_i2c.c
hw/omap_intc.c
hw/onenand.c
hw/opencores_eth.c
hw/openpic.c
hw/parallel.c
hw/pc-testdev.c
hw/pc.c
hw/pc_sysfw.c
hw/pci/pci.c
hw/pci_bridge_dev.c
hw/pckbd.c
hw/pcnet-pci.c
hw/pcspk.c
hw/piix4.c
hw/pl011.c
hw/pl022.c
hw/pl031.c
hw/pl041.c
hw/pl050.c
hw/pl061.c
hw/pl080.c
hw/pl110.c
hw/pl181.c
hw/pl190.c
hw/ppce500_spin.c
hw/pxa2xx.c
hw/pxa2xx_dma.c
hw/pxa2xx_gpio.c
hw/pxa2xx_pic.c
hw/pxa2xx_timer.c
hw/qdev.c
hw/qxl.c
hw/realview_gic.c
hw/rtl8139.c
hw/s390-virtio-bus.c
hw/s390x/event-facility.c
hw/s390x/sclp.c
hw/s390x/sclpconsole.c
hw/s390x/sclpquiesce.c
hw/sb16.c
hw/sbi.c
hw/scsi-bus.c
hw/scsi-disk.c
hw/scsi-generic.c
hw/serial-isa.c
hw/serial-pci.c
hw/sga.c
hw/sh_pci.c
hw/slavio_intctl.c
hw/slavio_misc.c
hw/slavio_timer.c
hw/smbus.c
hw/smbus_eeprom.c
hw/smc91c111.c
hw/spapr_llan.c
hw/spapr_vio.c
hw/spapr_vscsi.c
hw/spapr_vty.c
hw/sparc32_dma.c
hw/spitz.c
hw/ssd0303.c
hw/ssd0323.c
hw/ssi-sd.c
hw/ssi.c
hw/stellaris.c
hw/stellaris_enet.c
hw/stream.c
hw/strongarm.c
hw/sun4c_intctl.c
hw/sun4m.c
hw/sun4m_iommu.c
hw/sun4u.c
hw/sysbus.c
hw/tcx.c
hw/tmp105.c
hw/tosa.c
hw/tusb6010.c
hw/twl92230.c
hw/usb/bus.c
hw/usb/dev-audio.c
hw/usb/dev-bluetooth.c
hw/usb/dev-hid.c
hw/usb/dev-hub.c
hw/usb/dev-network.c
hw/usb/dev-serial.c
hw/usb/dev-smartcard-reader.c
hw/usb/dev-storage.c
hw/usb/dev-uas.c
hw/usb/dev-wacom.c
hw/usb/hcd-ohci.c
hw/usb/hcd-xhci.c
hw/usb/host-bsd.c
hw/usb/host-linux.c
hw/usb/redirect.c
hw/versatile_pci.c
hw/versatilepb.c
hw/vga-isa.c
hw/vga-pci.c
hw/virtio-console.c
hw/virtio-pci.c
hw/virtio-serial-bus.c
hw/vmmouse.c
hw/vmport.c
hw/vmware_vga.c
hw/vt82c686.c
hw/wdt_i6300esb.c
hw/wdt_ib700.c
hw/wm8750.c
hw/xen_apic.c
hw/xen_platform.c
hw/xen_pt.c
hw/xgmac.c
hw/xilinx_axidma.c
hw/xilinx_axienet.c
hw/xilinx_ethlite.c
hw/xilinx_intc.c
hw/xilinx_spi.c
hw/xilinx_timer.c
hw/xilinx_uartlite.c
hw/xio3130_downstream.c
hw/xio3130_upstream.c
hw/z2.c
hw/zaurus.c
hw/zynq_slcr.c
include/qom/object.h
qom/container.c