mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
hw/tpm: Constify all Property
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
74734e2b1b
commit
3885fa1591
5 changed files with 5 additions and 5 deletions
|
@ -226,7 +226,7 @@ static const VMStateDescription vmstate_tpm_crb = {
|
|||
}
|
||||
};
|
||||
|
||||
static Property tpm_crb_properties[] = {
|
||||
static const Property tpm_crb_properties[] = {
|
||||
DEFINE_PROP_TPMBE("tpmdev", CRBState, tpmbe),
|
||||
DEFINE_PROP_BOOL("ppi", CRBState, ppi_enabled, true),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
|
|
@ -364,7 +364,7 @@ static const VMStateDescription vmstate_spapr_vtpm = {
|
|||
}
|
||||
};
|
||||
|
||||
static Property tpm_spapr_properties[] = {
|
||||
static const Property tpm_spapr_properties[] = {
|
||||
DEFINE_SPAPR_PROPERTIES(SpaprTpmState, vdev),
|
||||
DEFINE_PROP_TPMBE("tpmdev", SpaprTpmState, be_driver),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
|
|
@ -491,7 +491,7 @@ static int tpm_tis_i2c_send(I2CSlave *i2c, uint8_t data)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static Property tpm_tis_i2c_properties[] = {
|
||||
static const Property tpm_tis_i2c_properties[] = {
|
||||
DEFINE_PROP_TPMBE("tpmdev", TPMStateI2C, state.be_driver),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
|
|
@ -91,7 +91,7 @@ static void tpm_tis_isa_reset(DeviceState *dev)
|
|||
return tpm_tis_reset(s);
|
||||
}
|
||||
|
||||
static Property tpm_tis_isa_properties[] = {
|
||||
static const Property tpm_tis_isa_properties[] = {
|
||||
DEFINE_PROP_UINT32("irq", TPMStateISA, state.irq_num, TPM_TIS_IRQ),
|
||||
DEFINE_PROP_TPMBE("tpmdev", TPMStateISA, state.be_driver),
|
||||
DEFINE_PROP_BOOL("ppi", TPMStateISA, state.ppi_enabled, true),
|
||||
|
|
|
@ -90,7 +90,7 @@ static void tpm_tis_sysbus_reset(DeviceState *dev)
|
|||
return tpm_tis_reset(s);
|
||||
}
|
||||
|
||||
static Property tpm_tis_sysbus_properties[] = {
|
||||
static const Property tpm_tis_sysbus_properties[] = {
|
||||
DEFINE_PROP_UINT32("irq", TPMStateSysBus, state.irq_num, TPM_TIS_IRQ),
|
||||
DEFINE_PROP_TPMBE("tpmdev", TPMStateSysBus, state.be_driver),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue