mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
Mark remaining global TypeInfo instances as const
More than 1k of TypeInfo instances are already marked as const. Mark the remaining ones, too. This commit was created with: git grep -z -l 'static TypeInfo' -- '*.c' | \ xargs -0 sed -i 's/static TypeInfo/static const TypeInfo/' Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Acked-by: Corey Minyard <cminyard@mvista.com> Message-id: 20220117145805.173070-2-shentey@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
7f6c295cdf
commit
5e78c98b7c
39 changed files with 42 additions and 42 deletions
|
@ -835,7 +835,7 @@ static void allwinner_sdhost_sun5i_class_init(ObjectClass *klass, void *data)
|
|||
sc->max_desc_size = 64 * KiB;
|
||||
}
|
||||
|
||||
static TypeInfo allwinner_sdhost_info = {
|
||||
static const TypeInfo allwinner_sdhost_info = {
|
||||
.name = TYPE_AW_SDHOST,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_init = allwinner_sdhost_init,
|
||||
|
|
|
@ -198,7 +198,7 @@ static void aspeed_sdhci_class_init(ObjectClass *classp, void *data)
|
|||
device_class_set_props(dc, aspeed_sdhci_properties);
|
||||
}
|
||||
|
||||
static TypeInfo aspeed_sdhci_info = {
|
||||
static const TypeInfo aspeed_sdhci_info = {
|
||||
.name = TYPE_ASPEED_SDHCI,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(AspeedSDHCIState),
|
||||
|
|
|
@ -436,7 +436,7 @@ static void bcm2835_sdhost_class_init(ObjectClass *klass, void *data)
|
|||
dc->vmsd = &vmstate_bcm2835_sdhost;
|
||||
}
|
||||
|
||||
static TypeInfo bcm2835_sdhost_info = {
|
||||
static const TypeInfo bcm2835_sdhost_info = {
|
||||
.name = TYPE_BCM2835_SDHOST,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(BCM2835SDHostState),
|
||||
|
|
|
@ -175,7 +175,7 @@ static void cadence_sdhci_class_init(ObjectClass *classp, void *data)
|
|||
dc->vmsd = &vmstate_cadence_sdhci;
|
||||
}
|
||||
|
||||
static TypeInfo cadence_sdhci_info = {
|
||||
static const TypeInfo cadence_sdhci_info = {
|
||||
.name = TYPE_CADENCE_SDHCI,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(CadenceSDHCIState),
|
||||
|
|
|
@ -166,7 +166,7 @@ static void npcm7xx_sdhci_instance_init(Object *obj)
|
|||
TYPE_SYSBUS_SDHCI);
|
||||
}
|
||||
|
||||
static TypeInfo npcm7xx_sdhci_info = {
|
||||
static const TypeInfo npcm7xx_sdhci_info = {
|
||||
.name = TYPE_NPCM7XX_SDHCI,
|
||||
.parent = TYPE_SYS_BUS_DEVICE,
|
||||
.instance_size = sizeof(NPCM7xxSDHCIState),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue