[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/8] esp-pci: Rename TYPE_AM53C974_DEVICE to TYPE_AM53C974
From: |
Eduardo Habkost |
Subject: |
[PATCH 6/8] esp-pci: Rename TYPE_AM53C974_DEVICE to TYPE_AM53C974 |
Date: |
Thu, 3 Sep 2020 14:01:26 -0400 |
This will make the type name constant consistent with the QOM
type name string ("am53c974").
Suggested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Suggested-by: "Daniel P. Berrangé" <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
Changes v1 -> v2:
* v1 subject was "scsi: Rename TYPE_AM53C974_DEVICE to TYPE_PCI_ESP"
* Rename it to TYPE_AM53C974 instead, to be consistent with QOM
type name ("am53c974")
---
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Fam Zheng <fam@euphon.net>
Cc: qemu-devel@nongnu.org
---
hw/scsi/esp-pci.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c
index 2ce96dc56e..e30a911b21 100644
--- a/hw/scsi/esp-pci.c
+++ b/hw/scsi/esp-pci.c
@@ -35,11 +35,11 @@
#include "qemu/module.h"
#include "qom/object.h"
-#define TYPE_AM53C974_DEVICE "am53c974"
+#define TYPE_AM53C974 "am53c974"
typedef struct PCIESPState PCIESPState;
DECLARE_INSTANCE_CHECKER(PCIESPState, PCI_ESP,
- TYPE_AM53C974_DEVICE)
+ TYPE_AM53C974)
#define DMA_CMD 0x0
#define DMA_STC 0x1
@@ -400,7 +400,7 @@ static void esp_pci_class_init(ObjectClass *klass, void
*data)
}
static const TypeInfo esp_pci_info = {
- .name = TYPE_AM53C974_DEVICE,
+ .name = TYPE_AM53C974,
.parent = TYPE_PCI_DEVICE,
.instance_size = sizeof(PCIESPState),
.class_init = esp_pci_class_init,
@@ -525,7 +525,7 @@ static void dc390_class_init(ObjectClass *klass, void *data)
static const TypeInfo dc390_info = {
.name = TYPE_DC390_DEVICE,
- .parent = TYPE_AM53C974_DEVICE,
+ .parent = TYPE_AM53C974,
.instance_size = sizeof(DC390State),
.class_init = dc390_class_init,
};
--
2.26.2
- [PATCH 1/8] i8254: Rename TYPE_I8254 to TYPE_ISA_PIT, (continued)
- [PATCH 1/8] i8254: Rename TYPE_I8254 to TYPE_ISA_PIT, Eduardo Habkost, 2020/09/03
- [PATCH 2/8] i8254: Rename PIT to ISA_PIT, Eduardo Habkost, 2020/09/03
- [PATCH 3/8] i8259: Rename TYPE_I8259 to TYPE_ISA_I8259, Eduardo Habkost, 2020/09/03
- [PATCH 4/8] i8259: Rename PIC to ISA_I8259, Eduardo Habkost, 2020/09/03
- [PATCH 5/8] i8259: Rename KVM_PIC to KVM_I8259, Eduardo Habkost, 2020/09/03
- [PATCH 6/8] esp-pci: Rename TYPE_AM53C974_DEVICE to TYPE_AM53C974,
Eduardo Habkost <=
- [PATCH 7/8] esp-pci: Rename PCI_ESP to AM53C974, Eduardo Habkost, 2020/09/03
- [PATCH 8/8] tusb6010: Rename TUSB to TUSB6010, Eduardo Habkost, 2020/09/03