qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PULL 19/48] i2c: Drop FROM_I2C_SLAVE() macro


From: Andreas Färber
Subject: [Qemu-devel] [PULL 19/48] i2c: Drop FROM_I2C_SLAVE() macro
Date: Mon, 10 Feb 2014 19:36:36 +0100

We now use type-specific QOM cast macros instead.

Reviewed-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
---
 include/hw/i2c/i2c.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/hw/i2c/i2c.h b/include/hw/i2c/i2c.h
index 9df987b..4986ebc 100644
--- a/include/hw/i2c/i2c.h
+++ b/include/hw/i2c/i2c.h
@@ -59,8 +59,6 @@ void i2c_nack(I2CBus *bus);
 int i2c_send(I2CBus *bus, uint8_t data);
 int i2c_recv(I2CBus *bus);
 
-#define FROM_I2C_SLAVE(type, dev) DO_UPCAST(type, i2c, dev)
-
 DeviceState *i2c_create_slave(I2CBus *bus, const char *name, uint8_t addr);
 
 /* wm8750.c */
-- 
1.8.4.5




reply via email to

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