diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-14 12:48:15 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-27 22:29:01 +0100 |
commit | 97cfb5e430f95b58c09a9da21b60196f32475beb (patch) | |
tree | 52944b2a6da385718aae5b3a52004eee58ba900d /include/hw/isa/isa.h | |
parent | eba245659bfef2f325538c94f6c682f69d582fcf (diff) |
hw/isa: Remove empty ISADeviceClass structure
ISADeviceClass is an empty class and just increase code
complexity. Remove it, directly embedding DeviceClass in
classes expanding TYPE_ISA_DEVICE.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Message-Id: <20230215161641.32663-19-philmd@linaro.org>
Diffstat (limited to 'include/hw/isa/isa.h')
-rw-r--r-- | include/hw/isa/isa.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/hw/isa/isa.h b/include/hw/isa/isa.h index 25acd5c34c..7195bfb96c 100644 --- a/include/hw/isa/isa.h +++ b/include/hw/isa/isa.h @@ -11,7 +11,7 @@ #define ISA_NUM_IRQS 16 #define TYPE_ISA_DEVICE "isa-device" -OBJECT_DECLARE_TYPE(ISADevice, ISADeviceClass, ISA_DEVICE) +OBJECT_DECLARE_SIMPLE_TYPE(ISADevice, ISA_DEVICE) #define TYPE_ISA_BUS "ISA" OBJECT_DECLARE_SIMPLE_TYPE(ISABus, ISA_BUS) @@ -48,10 +48,6 @@ struct IsaDmaClass { void *opaque); }; -struct ISADeviceClass { - DeviceClass parent_class; -}; - struct ISABus { /*< private >*/ BusState parent_obj; |