aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c.h
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-25 09:12:54 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-01 10:43:24 -0600
commit8aae84a1f2ad256d222c97411af17013b1c35799 (patch)
tree08f3334771ca7c562563360fae89498e6c462d89 /hw/i2c.h
parent6c8fec8372147a561f5b721d3a5180b73d7ce4cb (diff)
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/i2c.h')
-rw-r--r--hw/i2c.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/i2c.h b/hw/i2c.h
index 883b5c588d..0e80d5a9cb 100644
--- a/hw/i2c.h
+++ b/hw/i2c.h
@@ -59,7 +59,6 @@ void i2c_nack(i2c_bus *bus);
int i2c_send(i2c_bus *bus, uint8_t data);
int i2c_recv(i2c_bus *bus);
-#define I2C_SLAVE_FROM_QDEV(dev) DO_UPCAST(I2CSlave, qdev, dev)
#define FROM_I2C_SLAVE(type, dev) DO_UPCAST(type, i2c, dev)
DeviceState *i2c_create_slave(i2c_bus *bus, const char *name, uint8_t addr);