qemu-e2k/include/hw/ssi
Peter Maydell 213f63df77 Replace uses of FROM_SSI_SLAVE() macro with QOM casts
The FROM_SSI_SLAVE() macro predates QOM and is used as a typesafe way
to cast from an SSISlave* to the instance struct of a subtype of
TYPE_SSI_SLAVE.  Switch to using the QOM cast macros instead, which
have the same effect (by writing the QOM macros if the types were
previously missing them.)

(The FROM_SSI_SLAVE() macro allows the SSISlave member of the
subtype's struct to be anywhere as long as it is named "ssidev",
whereas a QOM cast macro insists that it is the first thing in the
subtype's struct.  This is true for all the types we convert here.)

This removes all the uses of FROM_SSI_SLAVE() so we can delete the
definition.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-id: 20200628142429.17111-18-peter.maydell@linaro.org
2020-07-03 16:59:46 +01:00
..
aspeed_smc.h aspeed/smc: Add AST2600 timings registers 2019-12-16 10:46:34 +00:00
imx_spi.h i.MX: Add the Freescale SPI Controller 2016-05-12 13:22:29 +01:00
mss-spi.h msf2: Add Smartfusion2 SPI controller 2017-09-21 16:36:56 +01:00
pl022.h hw/ssi/pl022: Allow use as embedded-struct device 2018-08-24 13:17:44 +01:00
ssi.h Replace uses of FROM_SSI_SLAVE() macro with QOM casts 2020-07-03 16:59:46 +01:00
stm32f2xx_spi.h Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
xilinx_spips.h include: Make headers more self-contained 2019-08-16 13:31:51 +02:00