summary refs log tree commit diff stats
path: root/hw/sensor/lsm303dlhc_mag.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sensor/lsm303dlhc_mag.c')
-rw-r--r--hw/sensor/lsm303dlhc_mag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sensor/lsm303dlhc_mag.c b/hw/sensor/lsm303dlhc_mag.c
index bb8d48b2fd..343ff98990 100644
--- a/hw/sensor/lsm303dlhc_mag.c
+++ b/hw/sensor/lsm303dlhc_mag.c
@@ -442,7 +442,7 @@ static const VMStateDescription vmstate_lsm303dlhc_mag = {
     .name = "LSM303DLHC_MAG",
     .version_id = 0,
     .minimum_version_id = 0,
-    .fields = (VMStateField[]) {
+    .fields = (const VMStateField[]) {
 
         VMSTATE_I2C_SLAVE(parent_obj, LSM303DLHCMagState),
         VMSTATE_UINT8(len, LSM303DLHCMagState),