diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-12-21 14:16:34 +1100 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-12-30 07:38:06 +1100 |
| commit | af10fff2a3ae50d0337269aa1015591cfd380005 (patch) | |
| tree | b9888ce562aeda788e949651b56f6a03711fef92 /hw/sensor/tmp421.c | |
| parent | 307119ba50031be7553781a8a71aae38d798a7b3 (diff) | |
| download | focaccia-qemu-af10fff2a3ae50d0337269aa1015591cfd380005.tar.gz focaccia-qemu-af10fff2a3ae50d0337269aa1015591cfd380005.zip | |
hw/sensor: 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-54-richard.henderson@linaro.org>
Diffstat (limited to 'hw/sensor/tmp421.c')
| -rw-r--r-- | hw/sensor/tmp421.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sensor/tmp421.c b/hw/sensor/tmp421.c index a3db57dcb5..b6f0b62ab1 100644 --- a/hw/sensor/tmp421.c +++ b/hw/sensor/tmp421.c @@ -290,7 +290,7 @@ static const VMStateDescription vmstate_tmp421 = { .name = "TMP421", .version_id = 0, .minimum_version_id = 0, - .fields = (VMStateField[]) { + .fields = (const VMStateField[]) { VMSTATE_UINT8(len, TMP421State), VMSTATE_UINT8_ARRAY(buf, TMP421State, 2), VMSTATE_UINT8(pointer, TMP421State), |