mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/sd: Constify VMState
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20231221031652.119827-53-richard.henderson@linaro.org>
This commit is contained in:
parent
2d7b39a64f
commit
307119ba50
10 changed files with 14 additions and 14 deletions
|
@ -1457,7 +1457,7 @@ static const VMStateDescription sdhci_pending_insert_vmstate = {
|
|||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.needed = sdhci_pending_insert_vmstate_needed,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_BOOL(pending_insert_state, SDHCIState),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
|
@ -1467,7 +1467,7 @@ const VMStateDescription sdhci_vmstate = {
|
|||
.name = "sdhci",
|
||||
.version_id = 1,
|
||||
.minimum_version_id = 1,
|
||||
.fields = (VMStateField[]) {
|
||||
.fields = (const VMStateField[]) {
|
||||
VMSTATE_UINT32(sdmasysad, SDHCIState),
|
||||
VMSTATE_UINT16(blksize, SDHCIState),
|
||||
VMSTATE_UINT16(blkcnt, SDHCIState),
|
||||
|
@ -1498,7 +1498,7 @@ const VMStateDescription sdhci_vmstate = {
|
|||
VMSTATE_TIMER_PTR(transfer_timer, SDHCIState),
|
||||
VMSTATE_END_OF_LIST()
|
||||
},
|
||||
.subsections = (const VMStateDescription*[]) {
|
||||
.subsections = (const VMStateDescription * const []) {
|
||||
&sdhci_pending_insert_vmstate,
|
||||
NULL
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue