aboutsummaryrefslogtreecommitdiff
path: root/include/hw
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2020-08-25 15:20:45 -0400
committerEduardo Habkost <ehabkost@redhat.com>2020-08-27 14:04:55 -0400
commitb694ed1f56ade7e2fa0951718c9cdce78b892ddf (patch)
tree06c58d89889ad0a18288cd0d5c932f44a31045a8 /include/hw
parentb1af5872ff02e5793a94973960d2a68eb6812f94 (diff)
downloadqemu-b694ed1f56ade7e2fa0951718c9cdce78b892ddf.zip
qemu-b694ed1f56ade7e2fa0951718c9cdce78b892ddf.tar.gz
qemu-b694ed1f56ade7e2fa0951718c9cdce78b892ddf.tar.bz2
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 6add349..9d8b65c 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