[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL for-2.0-rc0 09/31] ssi: Remove SSI_SLAVE_FROM_QDEV()

From: Andreas Färber
Subject: [Qemu-devel] [PULL for-2.0-rc0 09/31] ssi: Remove SSI_SLAVE_FROM_QDEV() macro
Date: Wed, 12 Mar 2014 22:09:41 +0100

From: Peter Crosthwaite <address@hidden>

There are no usages left of this legacy cast. Delete.

Signed-off-by: Peter Crosthwaite <address@hidden>
[AF: Rename SSISlave parent field]
Signed-off-by: Andreas Färber <address@hidden>

ssi: Rename parent field
 include/hw/ssi.h | 3 +--
 1 file changed, 1 insertion(+), 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;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]