]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/core: Remove device_class_set_props function
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Dec 2024 13:42:45 +0000 (07:42 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Dec 2024 18:35:49 +0000 (19:35 +0100)
commit1088d41795101479e2d88f1e6140071732f9bdb3
tree8c992af56bd4302efdce5fec32e5a74a9fa07b09
parent5f9976486970b0fec50ff4c07da7af620cd7d0a0
hw/core: Remove device_class_set_props function

All uses of device_class_set_props() are now using arrays.
Validate this compile-time in the device_class_set_props macro and
call device_class_set_props_n using the known size of the array.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Lei Yang <leiyang@redhat.com>
Link: https://lore.kernel.org/r/20241218134251.4724-19-richard.henderson@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/qdev-properties.c
include/hw/qdev-core.h