summaryrefslogtreecommitdiffstats
path: root/include/hw/misc/mos6522.h
diff options
context:
space:
mode:
authorEduardo Habkost2020-08-25 21:20:41 +0200
committerEduardo Habkost2020-09-02 13:29:25 +0200
commit9db70dac85446d7cb86669c39d1f4278f033337e (patch)
treee87cf714580439a66e8922543d1ef9712ca98934 /include/hw/misc/mos6522.h
parentimx_ccm: Rename IMX_GET_CLASS macro (diff)
downloadqemu-9db70dac85446d7cb86669c39d1f4278f033337e.tar.gz
qemu-9db70dac85446d7cb86669c39d1f4278f033337e.tar.xz
qemu-9db70dac85446d7cb86669c39d1f4278f033337e.zip
mos6522: Rename QOM macros
Rename the MOS6522_DEVICE_CLASS and MOS6522_DEVICE_GET_CLASS macros to be consistent with the TYPE_MOS6522 and MOS6522 macros. This will make future conversion to OBJECT_DECLARE* easier. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20200825192110.3528606-46-ehabkost@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/misc/mos6522.h')
-rw-r--r--include/hw/misc/mos6522.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hw/misc/mos6522.h b/include/hw/misc/mos6522.h
index 97384c6e02..6b25ffd439 100644
--- a/include/hw/misc/mos6522.h
+++ b/include/hw/misc/mos6522.h
@@ -140,9 +140,9 @@ typedef struct MOS6522DeviceClass {
uint64_t (*get_timer2_load_time)(MOS6522State *dev, MOS6522Timer *ti);
} MOS6522DeviceClass;
-#define MOS6522_DEVICE_CLASS(cls) \
+#define MOS6522_CLASS(cls) \
OBJECT_CLASS_CHECK(MOS6522DeviceClass, (cls), TYPE_MOS6522)
-#define MOS6522_DEVICE_GET_CLASS(obj) \
+#define MOS6522_GET_CLASS(obj) \
OBJECT_GET_CLASS(MOS6522DeviceClass, (obj), TYPE_MOS6522)
extern const VMStateDescription vmstate_mos6522;