hw/usb/uhci: Declare QOM macros using OBJECT_DECLARE_TYPE()
The automatic conversion done during commit a489d1951c
("Use OBJECT_DECLARE_TYPE when possible") missed this
model because the typedefs are in a different file unit
(hcd-uhci.c) than where the DECLARE_INSTANCE_CHECKER()
is (hcd-uhci.h). Manually convert to OBJECT_DECLARE_TYPE().
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230220150515.32549-5-philmd@linaro.org>
This commit is contained in:
parent
380194624a
commit
ef177ee122
@ -60,9 +60,7 @@ enum {
|
|||||||
TD_RESULT_ASYNC_CONT,
|
TD_RESULT_ASYNC_CONT,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct UHCIState UHCIState;
|
|
||||||
typedef struct UHCIAsync UHCIAsync;
|
typedef struct UHCIAsync UHCIAsync;
|
||||||
typedef struct UHCIPCIDeviceClass UHCIPCIDeviceClass;
|
|
||||||
|
|
||||||
struct UHCIPCIDeviceClass {
|
struct UHCIPCIDeviceClass {
|
||||||
PCIDeviceClass parent_class;
|
PCIDeviceClass parent_class;
|
||||||
|
@ -75,7 +75,7 @@ typedef struct UHCIState {
|
|||||||
} UHCIState;
|
} UHCIState;
|
||||||
|
|
||||||
#define TYPE_UHCI "pci-uhci-usb"
|
#define TYPE_UHCI "pci-uhci-usb"
|
||||||
DECLARE_INSTANCE_CHECKER(UHCIState, UHCI, TYPE_UHCI)
|
OBJECT_DECLARE_TYPE(UHCIState, UHCIPCIDeviceClass, UHCI)
|
||||||
|
|
||||||
typedef struct UHCIInfo {
|
typedef struct UHCIInfo {
|
||||||
const char *name;
|
const char *name;
|
||||||
|
Loading…
Reference in New Issue
Block a user