diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-25 15:20:33 -0400 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-27 14:04:55 -0400 |
commit | cb8cf86b3e4a9384f847c05e3825a20a0786efd0 (patch) | |
tree | df2db31830752371865c6dae8720493495e70100 | |
parent | fe47ad3aa98b7741b3749fbd60205b39b444d05a (diff) | |
download | qemu-cb8cf86b3e4a9384f847c05e3825a20a0786efd0.zip qemu-cb8cf86b3e4a9384f847c05e3825a20a0786efd0.tar.gz qemu-cb8cf86b3e4a9384f847c05e3825a20a0786efd0.tar.bz2 |
auxbus: Move QOM macros to header
This will make future conversion to OBJECT_DECLARE* easier.
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-By: Roman Bolshakov <r.bolshakov@yadro.com>
Message-Id: <20200825192110.3528606-38-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
-rw-r--r-- | hw/misc/auxbus.c | 2 | ||||
-rw-r--r-- | include/hw/misc/auxbus.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/hw/misc/auxbus.c b/hw/misc/auxbus.c index da361ba..6c099ae 100644 --- a/hw/misc/auxbus.c +++ b/hw/misc/auxbus.c @@ -45,8 +45,6 @@ } \ } while (0) -#define TYPE_AUXTOI2C "aux-to-i2c-bridge" -#define AUXTOI2C(obj) OBJECT_CHECK(AUXTOI2CState, (obj), TYPE_AUXTOI2C) static void aux_slave_dev_print(Monitor *mon, DeviceState *dev, int indent); static inline I2CBus *aux_bridge_get_i2c_bus(AUXTOI2CState *bridge); diff --git a/include/hw/misc/auxbus.h b/include/hw/misc/auxbus.h index 15a8973..041edfc 100644 --- a/include/hw/misc/auxbus.h +++ b/include/hw/misc/auxbus.h @@ -32,7 +32,10 @@ typedef struct AUXBus AUXBus; typedef struct AUXSlave AUXSlave; typedef enum AUXCommand AUXCommand; typedef enum AUXReply AUXReply; + +#define TYPE_AUXTOI2C "aux-to-i2c-bridge" typedef struct AUXTOI2CState AUXTOI2CState; +#define AUXTOI2C(obj) OBJECT_CHECK(AUXTOI2CState, (obj), TYPE_AUXTOI2C) enum AUXCommand { WRITE_I2C = 0, |