summaryrefslogtreecommitdiffstats
path: root/hw/ds1338.c
diff options
context:
space:
mode:
authorAndreas Färber2013-01-25 09:12:54 +0100
committerAnthony Liguori2013-02-01 17:43:24 +0100
commit8aae84a1f2ad256d222c97411af17013b1c35799 (patch)
tree08f3334771ca7c562563360fae89498e6c462d89 /hw/ds1338.c
parentconfigure: Keep -Werror enabled for Release Candidates (diff)
downloadqemu-8aae84a1f2ad256d222c97411af17013b1c35799.tar.gz
qemu-8aae84a1f2ad256d222c97411af17013b1c35799.tar.xz
qemu-8aae84a1f2ad256d222c97411af17013b1c35799.zip
i2c: Drop I2C_SLAVE_FROM_QDEV() macro
It is not being used in hot paths and is obsoleted by I2C_SLAVE() QOM cast macro. Clean it up using a scripted conversion, so that it doesn't get used in new code. Some of its callers were combining it with FROM_I2C_SLAVE() macro, which is equally obsolete but needs to be replaced in a type-specific way. Signed-off-by: Andreas Färber <afaerber@suse.de> Cc: Kuo-Jung Su <dantesu@faraday-tech.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ds1338.c')
-rw-r--r--hw/ds1338.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ds1338.c b/hw/ds1338.c
index 379220638e..6f70538eb3 100644
--- a/hw/ds1338.c
+++ b/hw/ds1338.c
@@ -198,7 +198,7 @@ static int ds1338_init(I2CSlave *i2c)
static void ds1338_reset(DeviceState *dev)
{
- DS1338State *s = FROM_I2C_SLAVE(DS1338State, I2C_SLAVE_FROM_QDEV(dev));
+ DS1338State *s = FROM_I2C_SLAVE(DS1338State, I2C_SLAVE(dev));
/* The clock is running and synchronized with the host */
s->offset = 0;