diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-12-21 14:16:11 +1100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-12-29 11:17:30 +1100 |
commit | 01d9442a889f545a41151066f6a577822166d21e (patch) | |
tree | f943ebbf97125202d60e5ca7d4323cf21ab2ff0b /hw/i2c/core.c | |
parent | 2ebfd1c4ac5bfcc990babf4bb4f410eeb79f1afa (diff) | |
download | qemu-01d9442a889f545a41151066f6a577822166d21e.zip qemu-01d9442a889f545a41151066f6a577822166d21e.tar.gz qemu-01d9442a889f545a41151066f6a577822166d21e.tar.bz2 |
hw/i2c: Constify VMState
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20231221031652.119827-31-richard.henderson@linaro.org>
Diffstat (limited to 'hw/i2c/core.c')
-rw-r--r-- | hw/i2c/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/i2c/core.c b/hw/i2c/core.c index 879a1d4..4cf30b2 100644 --- a/hw/i2c/core.c +++ b/hw/i2c/core.c @@ -50,7 +50,7 @@ static const VMStateDescription vmstate_i2c_bus = { .version_id = 1, .minimum_version_id = 1, .pre_save = i2c_bus_pre_save, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT8(saved_address, I2CBus), VMSTATE_END_OF_LIST() } @@ -359,7 +359,7 @@ const VMStateDescription vmstate_i2c_slave = { .version_id = 1, .minimum_version_id = 1, .post_load = i2c_slave_post_load, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT8(address, I2CSlave), VMSTATE_END_OF_LIST() } |