summary refs log tree commit diff stats
path: root/hw/sensor/tmp421.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-02-10 09:56:56 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-25 17:00:41 +0200
commitb282b859cf3442d922644e2cd2bee68272baafd5 (patch)
tree0d87712ce7b644321ba1820a8f7fb57ad43382e9 /hw/sensor/tmp421.c
parent12d1a768bdfea6e27a3a829228840d72507613a1 (diff)
downloadfocaccia-qemu-b282b859cf3442d922644e2cd2bee68272baafd5.tar.gz
focaccia-qemu-b282b859cf3442d922644e2cd2bee68272baafd5.zip
qom: Constify TypeInfo::class_data
All callers now correctly expect a const class data.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250424194905.82506-5-philmd@linaro.org>
Diffstat (limited to 'hw/sensor/tmp421.c')
-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 263bfa1bbd..3421c44086 100644
--- a/hw/sensor/tmp421.c
+++ b/hw/sensor/tmp421.c
@@ -382,7 +382,7 @@ static void tmp421_register_types(void)
             .name       = devices[i].name,
             .parent     = TYPE_TMP421,
             .class_init = tmp421_class_init,
-            .class_data = (void *) &devices[i],
+            .class_data = &devices[i],
         };
         type_register_static(&ti);
     }