From b282b859cf3442d922644e2cd2bee68272baafd5 Mon Sep 17 00:00:00 2001 From: Philippe Mathieu-Daudé Date: Mon, 10 Feb 2025 09:56:56 +0100 Subject: qom: Constify TypeInfo::class_data MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All callers now correctly expect a const class data. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20250424194905.82506-5-philmd@linaro.org> --- hw/sensor/tmp421.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/sensor/tmp421.c') 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); } -- cgit 1.4.1