summary refs log tree commit diff stats
path: root/hw/sensor
diff options
context:
space:
mode:
Diffstat (limited to 'hw/sensor')
-rw-r--r--hw/sensor/tmp421.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sensor/tmp421.c b/hw/sensor/tmp421.c
index 82e604279c..007f7cd018 100644
--- a/hw/sensor/tmp421.c
+++ b/hw/sensor/tmp421.c
@@ -68,7 +68,7 @@ struct TMP421State {
 
 struct TMP421Class {
     I2CSlaveClass parent_class;
-    DeviceInfo *dev;
+    const DeviceInfo *dev;
 };
 
 #define TYPE_TMP421 "tmp421-generic"