summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorEduardo Habkost2020-08-25 21:20:45 +0200
committerEduardo Habkost2020-08-27 20:04:55 +0200
commitb694ed1f56ade7e2fa0951718c9cdce78b892ddf (patch)
tree06c58d89889ad0a18288cd0d5c932f44a31045a8 /include/hw
parents390-virtio-ccw: Rename S390_MACHINE_CLASS macro (diff)
downloadqemu-b694ed1f56ade7e2fa0951718c9cdce78b892ddf.tar.gz
qemu-b694ed1f56ade7e2fa0951718c9cdce78b892ddf.tar.xz
qemu-b694ed1f56ade7e2fa0951718c9cdce78b892ddf.zip
swim: Rename struct SWIM to Swim
Currently we have a SWIM typedef and a SWIM type checking macro, but OBJECT_DECLARE* would transform the SWIM macro into a function, and the function name would conflict with the SWIM typedef name. Rename the struct and typedef to "Swim". This will make future conversion to OBJECT_DECLARE* easier. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Laurent Vivier <laurent@vivier.eu> Tested-By: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200825192110.3528606-50-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/block/swim.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/hw/block/swim.h b/include/hw/block/swim.h
index 6add3499d0..9d8b65c561 100644
--- a/include/hw/block/swim.h
+++ b/include/hw/block/swim.h
@@ -67,10 +67,10 @@ struct SWIMCtrl {
};
#define TYPE_SWIM "swim"
-#define SWIM(obj) OBJECT_CHECK(SWIM, (obj), TYPE_SWIM)
+#define SWIM(obj) OBJECT_CHECK(Swim, (obj), TYPE_SWIM)
-typedef struct SWIM {
+typedef struct Swim {
SysBusDevice parent_obj;
SWIMCtrl ctrl;
-} SWIM;
+} Swim;
#endif