qemu/hw/i2c
Eduardo Habkost db1015e92e Move QOM typedefs and add missing includes
Some typedefs and macros are defined after the type check macros.
This makes it difficult to automatically replace their
definitions with OBJECT_DECLARE_TYPE.

Patch generated using:

 $ ./scripts/codeconverter/converter.py -i \
   --pattern=QOMStructTypedefSplit $(git grep -l '' -- '*.[ch]')

which will split "typdef struct { ... } TypedefName"
declarations.

Followed by:

 $ ./scripts/codeconverter/converter.py -i --pattern=MoveSymbols \
    $(git grep -l '' -- '*.[ch]')

which will:
- move the typedefs and #defines above the type check macros
- add missing #include "qom/object.h" lines if necessary

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20200831210740.126168-9-ehabkost@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20200831210740.126168-10-ehabkost@redhat.com>
Message-Id: <20200831210740.126168-11-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2020-09-09 09:26:43 -04:00
..
aspeed_i2c.c hw/i2c/aspeed_i2c: Simplify aspeed_i2c_get_bus() 2020-07-16 12:30:54 -05:00
bitbang_i2c.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
core.c hw/i2c: Rename i2c_create_slave() as i2c_slave_create_simple() 2020-07-16 12:30:54 -05:00
exynos4210_i2c.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
imx_i2c.c hw: Remove unnecessary DEVICE() cast 2020-05-15 07:08:52 +02:00
Kconfig hw/i2c/Kconfig: Add an entry for the SMBus 2020-07-16 12:30:54 -05:00
meson.build meson: convert hw/i2c 2020-08-21 06:30:30 -04:00
microbit_i2c.c hw/arm/nrf51: Add NRF51_PERIPHERAL_SIZE definition 2020-05-11 11:05:11 +01:00
mpc_i2c.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
omap_i2c.c qdev: set properties with device_class_set_props() 2020-01-24 20:59:15 +01:00
pm_smbus.c hw/i2c/pm_smbus: Remove dead assignment 2020-05-04 14:43:24 +02:00
ppc4xx_i2c.c hw/*/Makefile.objs: Move many .o files to common-objs 2020-02-04 09:00:57 +01:00
smbus_eeprom.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
smbus_ich9.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00
smbus_master.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
smbus_slave.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
trace-events aspeed/i2c: Add trace events 2019-12-16 10:46:34 +00:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
versatile_i2c.c Move QOM typedefs and add missing includes 2020-09-09 09:26:43 -04:00