mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/usb: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-59-richard.henderson@linaro.org>
This commit is contained in:
parent
5e6aceb2dd
commit
3abedf29b4
25 changed files with 49 additions and 49 deletions
|
@ -1984,7 +1984,7 @@ static const VMStateDescription vmstate_ohci_state_port = {
|
|||
.name = "ohci-core/port",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(ctrl, OHCIPort),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
|
@ -2002,7 +2002,7 @@ static const VMStateDescription vmstate_ohci_eof_timer = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = ohci_eof_timer_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_TIMER_PTR(eof_timer, OHCIState),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
|
@ -2012,7 +2012,7 @@ const VMStateDescription vmstate_ohci_state = {
|
|||
.name = "ohci-core",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_INT64(sof_time, OHCIState),
|
||||
VMSTATE_UINT32(ctl, OHCIState),
|
||||
VMSTATE_UINT32(status, OHCIState),
|
||||
|
@ -2049,7 +2049,7 @@ const VMStateDescription vmstate_ohci_state = {
|
|||
VMSTATE_BOOL(async_complete, OHCIState),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
.subsections = (const VMStateDescription*[]) {
|
||||
.subsections = (const VMStateDescription * const []) {
|
||||
&vmstate_ohci_eof_timer,
|
||||
NULL
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue