mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
Use OBJECT_DECLARE_SIMPLE_TYPE when possible
This converts existing DECLARE_INSTANCE_CHECKER usage to OBJECT_DECLARE_SIMPLE_TYPE when possible. $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Message-Id: <20200916182519.415636-6-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
@@ -30,9 +30,7 @@
|
||||
#include "qom/object.h"
|
||||
|
||||
#define TYPE_MSS_TIMER "mss-timer"
|
||||
typedef struct MSSTimerState MSSTimerState;
|
||||
DECLARE_INSTANCE_CHECKER(MSSTimerState, MSS_TIMER,
|
||||
TYPE_MSS_TIMER)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(MSSTimerState, MSS_TIMER)
|
||||
|
||||
/*
|
||||
* There are two 32-bit down counting timers.
|
||||
|
||||
Reference in New Issue
Block a user