diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-25 15:20:28 -0400 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-08-27 14:04:54 -0400 |
commit | dc15d9eb419c9c27e3c76741320b5134b15f4d57 (patch) | |
tree | 1e84b4e5a46fb0e310fa4b786e40290a461e33ae /hw/ide | |
parent | e6fcd78008e2ba757e1577c6d67520d6be62c96c (diff) | |
download | qemu-dc15d9eb419c9c27e3c76741320b5134b15f4d57.zip qemu-dc15d9eb419c9c27e3c76741320b5134b15f4d57.tar.gz qemu-dc15d9eb419c9c27e3c76741320b5134b15f4d57.tar.bz2 |
ahci: Move QOM macro to header
Move the ALLWINNER_AHCI macro close to the TYPE_ALLWINNER_AHCI
define.
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-33-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/ahci-allwinner.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/ide/ahci-allwinner.c b/hw/ide/ahci-allwinner.c index 8536b9e..227e747 100644 --- a/hw/ide/ahci-allwinner.c +++ b/hw/ide/ahci-allwinner.c @@ -25,9 +25,6 @@ #include "trace.h" -#define ALLWINNER_AHCI(obj) \ - OBJECT_CHECK(AllwinnerAHCIState, (obj), TYPE_ALLWINNER_AHCI) - #define ALLWINNER_AHCI_BISTAFR ((0xa0 - ALLWINNER_AHCI_MMIO_OFF) / 4) #define ALLWINNER_AHCI_BISTCR ((0xa4 - ALLWINNER_AHCI_MMIO_OFF) / 4) #define ALLWINNER_AHCI_BISTFCTR ((0xa8 - ALLWINNER_AHCI_MMIO_OFF) / 4) |