mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -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
|
@ -2106,7 +2106,7 @@ static void usb_mtp_class_initfn(ObjectClass *klass, void *data)
|
|||
device_class_set_props(dc, mtp_properties);
|
||||
}
|
||||
|
||||
static TypeInfo mtp_info = {
|
||||
static const TypeInfo mtp_info = {
|
||||
.name = TYPE_USB_MTP,
|
||||
.parent = TYPE_USB_DEVICE,
|
||||
.instance_size = sizeof(MTPState),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue