iotkit-sysinfo.c (95a9457fd44ad97c518858a4e1586a5498f9773c) | iotkit-sysinfo.c (4f67d30b5e74e060b8dbe10528829b47345cd6e8) |
---|---|
1/* 2 * ARM IoTKit system information block 3 * 4 * Copyright (c) 2018 Linaro Limited 5 * Written by Peter Maydell 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 or --- 107 unchanged lines hidden (view full) --- 116{ 117 DeviceClass *dc = DEVICE_CLASS(klass); 118 119 /* 120 * This device has no guest-modifiable state and so it 121 * does not need a reset function or VMState. 122 */ 123 | 1/* 2 * ARM IoTKit system information block 3 * 4 * Copyright (c) 2018 Linaro Limited 5 * Written by Peter Maydell 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 or --- 107 unchanged lines hidden (view full) --- 116{ 117 DeviceClass *dc = DEVICE_CLASS(klass); 118 119 /* 120 * This device has no guest-modifiable state and so it 121 * does not need a reset function or VMState. 122 */ 123 |
124 dc->props = iotkit_sysinfo_props; | 124 device_class_set_props(dc, iotkit_sysinfo_props); |
125} 126 127static const TypeInfo iotkit_sysinfo_info = { 128 .name = TYPE_IOTKIT_SYSINFO, 129 .parent = TYPE_SYS_BUS_DEVICE, 130 .instance_size = sizeof(IoTKitSysInfo), 131 .instance_init = iotkit_sysinfo_init, 132 .class_init = iotkit_sysinfo_class_init, 133}; 134 135static void iotkit_sysinfo_register_types(void) 136{ 137 type_register_static(&iotkit_sysinfo_info); 138} 139 140type_init(iotkit_sysinfo_register_types); | 125} 126 127static const TypeInfo iotkit_sysinfo_info = { 128 .name = TYPE_IOTKIT_SYSINFO, 129 .parent = TYPE_SYS_BUS_DEVICE, 130 .instance_size = sizeof(IoTKitSysInfo), 131 .instance_init = iotkit_sysinfo_init, 132 .class_init = iotkit_sysinfo_class_init, 133}; 134 135static void iotkit_sysinfo_register_types(void) 136{ 137 type_register_static(&iotkit_sysinfo_info); 138} 139 140type_init(iotkit_sysinfo_register_types); |