qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [COMMIT 368eb5d] qdev/prop: convert i2c.c to helper macro


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 368eb5d] qdev/prop: convert i2c.c to helper macros.
Date: Mon, 10 Aug 2009 21:48:49 -0000

From: Gerd Hoffmann <address@hidden>

Signed-off-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Message-Id: 

diff --git a/hw/i2c.c b/hw/i2c.c
index 42a5d7a..7a1b358 100644
--- a/hw/i2c.c
+++ b/hw/i2c.c
@@ -21,12 +21,8 @@ static struct BusInfo i2c_bus_info = {
     .name = "I2C",
     .size = sizeof(i2c_bus),
     .props = (Property[]) {
-        {
-            .name   = "address",
-            .info   = &qdev_prop_uint32,
-            .offset = offsetof(struct i2c_slave, address),
-        },
-        {/* end of list */}
+        DEFINE_PROP_UINT32("address", struct i2c_slave, address, 0),
+        DEFINE_PROP_END_OF_LIST(),
     }
 };
 




reply via email to

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