mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43: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
|
@ -1367,7 +1367,7 @@ static const VMStateDescription bulk_in_vmstate = {
|
|||
.name = "CCID BulkIn state",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_BUFFER(data, BulkIn),
|
||||
VMSTATE_UINT32(len, BulkIn),
|
||||
VMSTATE_UINT32(pos, BulkIn),
|
||||
|
@ -1379,7 +1379,7 @@ static const VMStateDescription answer_vmstate = {
|
|||
.name = "CCID Answer state",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT8(slot, Answer),
|
||||
VMSTATE_UINT8(seq, Answer),
|
||||
VMSTATE_END_OF_LIST()
|
||||
|
@ -1390,7 +1390,7 @@ static const VMStateDescription usb_device_vmstate = {
|
|||
.name = "usb_device",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT8(addr, USBDevice),
|
||||
VMSTATE_BUFFER(setup_buf, USBDevice),
|
||||
VMSTATE_BUFFER(data_buf, USBDevice),
|
||||
|
@ -1404,7 +1404,7 @@ static const VMStateDescription ccid_vmstate = {
|
|||
.minimum_version_id = 1,
|
||||
.post_load = ccid_post_load,
|
||||
.pre_save = ccid_pre_save,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_STRUCT(dev, USBCCIDState, 1, usb_device_vmstate, USBDevice),
|
||||
VMSTATE_UINT8(debug, USBCCIDState),
|
||||
VMSTATE_BUFFER(bulk_out_data, USBCCIDState),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue