ソースを参照

qdev/prop: convert integratorcp.c to helper macros.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Gerd Hoffmann 16 年 前
コミット
bb36f66a97
1 ファイル変更2 行追加6 行削除
  1. 2 6
      hw/integratorcp.c

+ 2 - 6
hw/integratorcp.c

@@ -526,12 +526,8 @@ static SysBusDeviceInfo core_info = {
     .qdev.name  = "integrator_core",
     .qdev.name  = "integrator_core",
     .qdev.size  = sizeof(integratorcm_state),
     .qdev.size  = sizeof(integratorcm_state),
     .qdev.props = (Property[]) {
     .qdev.props = (Property[]) {
-        {
-            .name   = "memsz",
-            .info   = &qdev_prop_uint32,
-            .offset = offsetof(integratorcm_state, memsz),
-        },
-        {/* end of list */}
+        DEFINE_PROP_UINT32("memsz", integratorcm_state, memsz, 0),
+        DEFINE_PROP_END_OF_LIST(),
     }
     }
 };
 };