]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/spitz: Provide usual QOM macros for corgi-ssp and spitz-lcdtg
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Jul 2020 15:59:46 +0000 (16:59 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Jul 2020 15:59:46 +0000 (16:59 +0100)
commit62a4d34020197e16e54ec79f7991a6acaedfecf6
tree34b357526000120bfa5da92909722e3c06002146
parente53652ebeaba50e4cc54608ac5e2fe1b8b8717dc
hw/arm/spitz: Provide usual QOM macros for corgi-ssp and spitz-lcdtg

The QOM types "spitz-lcdtg" and "corgi-ssp" are missing the
usual QOM TYPE and casting macros; provide and use them.

In particular, we can safely use the QOM cast macros instead of
FROM_SSI_SLAVE() because in both cases the 'ssidev' field of
the instance state struct is the first field in it.

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-17-peter.maydell@linaro.org
hw/arm/spitz.c