mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -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
|
@ -623,7 +623,7 @@ static const VMStateDescription vmstate_usb_hub_port = {
|
|||
.name = "usb-hub-port",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT16(wPortStatus, USBHubPort),
|
||||
VMSTATE_UINT16(wPortChange, USBHubPort),
|
||||
VMSTATE_END_OF_LIST()
|
||||
|
@ -642,7 +642,7 @@ static const VMStateDescription vmstate_usb_hub_port_timer = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = usb_hub_port_timer_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_TIMER_PTR(port_timer, USBHubState),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
|
@ -652,13 +652,13 @@ static const VMStateDescription vmstate_usb_hub = {
|
|||
.name = "usb-hub",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_USB_DEVICE(dev, USBHubState),
|
||||
VMSTATE_STRUCT_ARRAY(ports, USBHubState, MAX_PORTS, 0,
|
||||
vmstate_usb_hub_port, USBHubPort),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
.subsections = (const VMStateDescription * []) {
|
||||
.subsections = (const VMStateDescription * const []) {
|
||||
&vmstate_usb_hub_port_timer,
|
||||
NULL
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue