mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
eba245659b
commit
97cfb5e430
6 changed files with 5 additions and 10 deletions
|
@ -35,7 +35,7 @@
|
|||
OBJECT_DECLARE_TYPE(PICCommonState, PICCommonClass, PIC_COMMON)
|
||||
|
||||
struct PICCommonClass {
|
||||
ISADeviceClass parent_class;
|
||||
DeviceClass parent_class;
|
||||
|
||||
void (*pre_save)(PICCommonState *s);
|
||||
void (*post_load)(PICCommonState *s);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -44,7 +44,7 @@ typedef struct ISASuperIOFuncs {
|
|||
|
||||
struct ISASuperIOClass {
|
||||
/*< private >*/
|
||||
ISADeviceClass parent_class;
|
||||
DeviceClass parent_class;
|
||||
/*< public >*/
|
||||
DeviceRealize parent_realize;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue