aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2014-02-11 16:30:10 -0800
committerAndreas Färber <afaerber@suse.de>2014-03-12 20:13:02 +0100
commit1f760d5f2bbe89685f2fe4b12a898c26196d3a1e (patch)
treeb3c111cae12d7b71f98b46f426386f7cf0dd5199
parent7c77b654c5371e970bc3190afe8dc85bc4f2c8ff (diff)
downloadqemu-1f760d5f2bbe89685f2fe4b12a898c26196d3a1e.zip
qemu-1f760d5f2bbe89685f2fe4b12a898c26196d3a1e.tar.gz
qemu-1f760d5f2bbe89685f2fe4b12a898c26196d3a1e.tar.bz2
ssi: Remove SSI_SLAVE_FROM_QDEV() macro
There are no usages left of this legacy cast. Delete. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> [AF: Rename SSISlave parent field] Signed-off-by: Andreas Färber <afaerber@suse.de> ssi: Rename parent field
-rw-r--r--include/hw/ssi.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/hw/ssi.h b/include/hw/ssi.h
index fdae317..6c13fb2 100644
--- a/include/hw/ssi.h
+++ b/include/hw/ssi.h
@@ -56,13 +56,12 @@ typedef struct SSISlaveClass {
} SSISlaveClass;
struct SSISlave {
- DeviceState qdev;
+ DeviceState parent_obj;
/* Chip select state */
bool cs;
};
-#define SSI_SLAVE_FROM_QDEV(dev) DO_UPCAST(SSISlave, qdev, dev)
#define FROM_SSI_SLAVE(type, dev) DO_UPCAST(type, ssidev, dev)
extern const VMStateDescription vmstate_ssi_slave;