This will make the type name constant consistent with the name of the type checking macro. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20200902224311.1321159-6-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
		
			
				
	
	
		
			38 lines
		
	
	
		
			867 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			867 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Adjunct Processor (AP) matrix device
 | |
|  *
 | |
|  * Copyright 2018 IBM Corp.
 | |
|  *
 | |
|  * This work is licensed under the terms of the GNU GPL, version 2 or (at
 | |
|  * your option) any later version. See the COPYING file in the top-level
 | |
|  * directory.
 | |
|  */
 | |
| #include "qemu/osdep.h"
 | |
| #include "qemu/module.h"
 | |
| #include "qapi/error.h"
 | |
| #include "hw/s390x/ap-device.h"
 | |
| 
 | |
| static void ap_class_init(ObjectClass *klass, void *data)
 | |
| {
 | |
|     DeviceClass *dc = DEVICE_CLASS(klass);
 | |
| 
 | |
|     dc->desc = "AP device class";
 | |
|     dc->hotpluggable = false;
 | |
| }
 | |
| 
 | |
| static const TypeInfo ap_device_info = {
 | |
|     .name = TYPE_AP_DEVICE,
 | |
|     .parent = TYPE_DEVICE,
 | |
|     .instance_size = sizeof(APDevice),
 | |
|     .class_size = sizeof(DeviceClass),
 | |
|     .class_init = ap_class_init,
 | |
|     .abstract = true,
 | |
| };
 | |
| 
 | |
| static void ap_device_register(void)
 | |
| {
 | |
|     type_register_static(&ap_device_info);
 | |
| }
 | |
| 
 | |
| type_init(ap_device_register)
 |