diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-02-10 09:56:56 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-04-25 17:00:41 +0200 |
| commit | b282b859cf3442d922644e2cd2bee68272baafd5 (patch) | |
| tree | 0d87712ce7b644321ba1820a8f7fb57ad43382e9 /hw/sensor/tmp421.c | |
| parent | 12d1a768bdfea6e27a3a829228840d72507613a1 (diff) | |
| download | focaccia-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.c | 2 |
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); } |