rdma: Rename INTERFACE_RDMA_PROVIDER_CLASS macro
Rename the macro to be consistent with RDMA_PROVIDER and RDMA_PROVIDER_GET_CLASS. This will make future conversion to OBJECT_DECLARE* easier. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20200825192110.3528606-48-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
30c60f77a8
commit
7b4433bb93
@ -681,7 +681,7 @@ static void pvrdma_class_init(ObjectClass *klass, void *data)
|
||||
{
|
||||
DeviceClass *dc = DEVICE_CLASS(klass);
|
||||
PCIDeviceClass *k = PCI_DEVICE_CLASS(klass);
|
||||
RdmaProviderClass *ir = INTERFACE_RDMA_PROVIDER_CLASS(klass);
|
||||
RdmaProviderClass *ir = RDMA_PROVIDER_CLASS(klass);
|
||||
|
||||
k->realize = pvrdma_realize;
|
||||
k->vendor_id = PCI_VENDOR_ID_VMWARE;
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#define INTERFACE_RDMA_PROVIDER "rdma"
|
||||
|
||||
#define INTERFACE_RDMA_PROVIDER_CLASS(klass) \
|
||||
#define RDMA_PROVIDER_CLASS(klass) \
|
||||
OBJECT_CLASS_CHECK(RdmaProviderClass, (klass), \
|
||||
INTERFACE_RDMA_PROVIDER)
|
||||
#define RDMA_PROVIDER_GET_CLASS(obj) \
|
||||
|
Loading…
Reference in New Issue
Block a user