Skip to content

Commit

Permalink
ssi: Remove SSI_SLAVE_FROM_QDEV() macro
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pete128 authored and afaerber committed Mar 12, 2014
1 parent 7c77b65 commit 1f760d5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/hw/ssi.h
Expand Up @@ -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;
Expand Down

0 comments on commit 1f760d5

Please sign in to comment.