mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
pxa2xx: Move QOM macros to header
This will make future conversion to OBJECT_DECLARE* easier. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Tested-By: Roman Bolshakov <r.bolshakov@yadro.com> Message-Id: <20200825192110.3528606-40-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
8eeb6f3624
commit
2d8eb5f85f
4 changed files with 13 additions and 14 deletions
|
@ -1251,10 +1251,6 @@ typedef struct PXA2xxI2CSlaveState {
|
|||
PXA2xxI2CState *host;
|
||||
} PXA2xxI2CSlaveState;
|
||||
|
||||
#define TYPE_PXA2XX_I2C "pxa2xx_i2c"
|
||||
#define PXA2XX_I2C(obj) \
|
||||
OBJECT_CHECK(PXA2xxI2CState, (obj), TYPE_PXA2XX_I2C)
|
||||
|
||||
struct PXA2xxI2CState {
|
||||
/*< private >*/
|
||||
SysBusDevice parent_obj;
|
||||
|
@ -1787,9 +1783,6 @@ static PXA2xxI2SState *pxa2xx_i2s_init(MemoryRegion *sysmem,
|
|||
}
|
||||
|
||||
/* PXA Fast Infra-red Communications Port */
|
||||
#define TYPE_PXA2XX_FIR "pxa2xx-fir"
|
||||
#define PXA2XX_FIR(obj) OBJECT_CHECK(PXA2xxFIrState, (obj), TYPE_PXA2XX_FIR)
|
||||
|
||||
struct PXA2xxFIrState {
|
||||
/*< private >*/
|
||||
SysBusDevice parent_obj;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue