]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/core/resetcontainer: Consolidate OBJECT_DECLARE_SIMPLE_TYPE
authorZhao Liu <zhao1.liu@intel.com>
Wed, 14 May 2025 08:49:55 +0000 (16:49 +0800)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 10 Jun 2025 09:06:47 +0000 (11:06 +0200)
commit17612f972f02fcafae2c70aa96c9d2e7a4c6d36d
tree6f024b537e2a4e780eaac85960313d471d6355f4
parent63151361fdf14e9dcaa463fe06e0b23f51c689eb
hw/core/resetcontainer: Consolidate OBJECT_DECLARE_SIMPLE_TYPE

The QOM type of ResettableContainer is defined by
OBJECT_DEFINE_SIMPLE_TYPE_WITH_INTERFACES, which means it doesn't need
the class!

Therefore, use OBJECT_DECLARE_SIMPLE_TYPE to declare the type, then
there's no need for class definition.

Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250514084957.2221975-8-zhao1.liu@intel.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
include/hw/core/resetcontainer.h