mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-14 21:52:18 -06:00
hw/acpi: Constify all Property
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
46408f1811
commit
c76bc08df2
4 changed files with 4 additions and 4 deletions
|
@ -1011,7 +1011,7 @@ static void erst_reset(DeviceState *dev)
|
||||||
trace_acpi_erst_reset_out(le32_to_cpu(s->header->record_count));
|
trace_acpi_erst_reset_out(le32_to_cpu(s->header->record_count));
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property erst_properties[] = {
|
static const Property erst_properties[] = {
|
||||||
DEFINE_PROP_LINK(ACPI_ERST_MEMDEV_PROP, ERSTDeviceState, hostmem,
|
DEFINE_PROP_LINK(ACPI_ERST_MEMDEV_PROP, ERSTDeviceState, hostmem,
|
||||||
TYPE_MEMORY_BACKEND, HostMemoryBackend *),
|
TYPE_MEMORY_BACKEND, HostMemoryBackend *),
|
||||||
DEFINE_PROP_UINT32(ACPI_ERST_RECORD_SIZE_PROP, ERSTDeviceState,
|
DEFINE_PROP_UINT32(ACPI_ERST_RECORD_SIZE_PROP, ERSTDeviceState,
|
||||||
|
|
|
@ -316,7 +316,7 @@ static void acpi_ged_send_event(AcpiDeviceIf *adev, AcpiEventStatusBits ev)
|
||||||
qemu_irq_pulse(s->irq);
|
qemu_irq_pulse(s->irq);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property acpi_ged_properties[] = {
|
static const Property acpi_ged_properties[] = {
|
||||||
DEFINE_PROP_UINT32("ged-event", AcpiGedState, ged_event_bitmap, 0),
|
DEFINE_PROP_UINT32("ged-event", AcpiGedState, ged_event_bitmap, 0),
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
};
|
};
|
||||||
|
|
|
@ -602,7 +602,7 @@ static void piix4_send_gpe(AcpiDeviceIf *adev, AcpiEventStatusBits ev)
|
||||||
acpi_send_gpe_event(&s->ar, s->irq, ev);
|
acpi_send_gpe_event(&s->ar, s->irq, ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property piix4_pm_properties[] = {
|
static const Property piix4_pm_properties[] = {
|
||||||
DEFINE_PROP_UINT32("smb_io_base", PIIX4PMState, smb_io_base, 0),
|
DEFINE_PROP_UINT32("smb_io_base", PIIX4PMState, smb_io_base, 0),
|
||||||
DEFINE_PROP_UINT8(ACPI_PM_PROP_S3_DISABLED, PIIX4PMState, disable_s3, 0),
|
DEFINE_PROP_UINT8(ACPI_PM_PROP_S3_DISABLED, PIIX4PMState, disable_s3, 0),
|
||||||
DEFINE_PROP_UINT8(ACPI_PM_PROP_S4_DISABLED, PIIX4PMState, disable_s4, 0),
|
DEFINE_PROP_UINT8(ACPI_PM_PROP_S4_DISABLED, PIIX4PMState, disable_s4, 0),
|
||||||
|
|
|
@ -214,7 +214,7 @@ static void vmgenid_realize(DeviceState *dev, Error **errp)
|
||||||
vmgenid_update_guest(vms);
|
vmgenid_update_guest(vms);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Property vmgenid_device_properties[] = {
|
static const Property vmgenid_device_properties[] = {
|
||||||
DEFINE_PROP_UUID(VMGENID_GUID, VmGenIdState, guid),
|
DEFINE_PROP_UUID(VMGENID_GUID, VmGenIdState, guid),
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue