diff options
Diffstat (limited to 'hw/max111x.c')
-rw-r--r-- | hw/max111x.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/hw/max111x.c b/hw/max111x.c index db17842..9d61aa9 100644 --- a/hw/max111x.c +++ b/hw/max111x.c @@ -161,10 +161,11 @@ static void max1110_class_init(ObjectClass *klass, void *data) k->transfer = max111x_transfer; } -static DeviceInfo max1110_info = { - .name = "max1110", - .size = sizeof(MAX111xState), - .class_init = max1110_class_init, +static TypeInfo max1110_info = { + .name = "max1110", + .parent = TYPE_SSI_SLAVE, + .instance_size = sizeof(MAX111xState), + .class_init = max1110_class_init, }; static void max1111_class_init(ObjectClass *klass, void *data) @@ -175,16 +176,17 @@ static void max1111_class_init(ObjectClass *klass, void *data) k->transfer = max111x_transfer; } -static DeviceInfo max1111_info = { - .name = "max1111", - .size = sizeof(MAX111xState), - .class_init = max1111_class_init, +static TypeInfo max1111_info = { + .name = "max1111", + .parent = TYPE_SSI_SLAVE, + .instance_size = sizeof(MAX111xState), + .class_init = max1111_class_init, }; static void max111x_register_devices(void) { - ssi_register_slave(&max1110_info); - ssi_register_slave(&max1111_info); + type_register_static(&max1110_info); + type_register_static(&max1111_info); } device_init(max111x_register_devices) |