]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/misc/edu: Convert type_init() -> DEFINE_TYPES()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 23 Apr 2025 17:00:39 +0000 (19:00 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 25 Apr 2025 15:00:41 +0000 (17:00 +0200)
commitfbb23135d691d20f713bf2318e1cf6575e77cda7
tree319ae68f45f55a4e1e3add14c27993336cdf0f89
parent6970f91ac7819e186dc0e2efea08120450fb5404
hw/misc/edu: Convert type_init() -> DEFINE_TYPES()

Prefer DEFINE_TYPES() macro over type_init() to register
QOM types.

Initialize the .interfaces struct field as compound literal
casted to InterfaceInfo type like the rest of our code base.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250424194905.82506-2-philmd@linaro.org>
hw/misc/edu.c