mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-26 03:33:28 +00:00 
			
		
		
		
	 8063396bf3
			
		
	
	
		8063396bf3
		
	
	
	
	
		
			
			This converts existing DECLARE_INSTANCE_CHECKER usage to OBJECT_DECLARE_SIMPLE_TYPE when possible. $ ./scripts/codeconverter/converter.py -i \ --pattern=AddObjectDeclareSimpleType $(git grep -l '' -- '*.[ch]') Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Paul Durrant <paul@xen.org> Message-Id: <20200916182519.415636-6-ehabkost@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			536 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			536 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * BCM2835 dummy thermal sensor
 | |
|  *
 | |
|  * Copyright (C) 2019 Philippe Mathieu-Daudé <f4bug@amsat.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: GPL-2.0-or-later
 | |
|  */
 | |
| 
 | |
| #ifndef HW_MISC_BCM2835_THERMAL_H
 | |
| #define HW_MISC_BCM2835_THERMAL_H
 | |
| 
 | |
| #include "hw/sysbus.h"
 | |
| #include "qom/object.h"
 | |
| 
 | |
| #define TYPE_BCM2835_THERMAL "bcm2835-thermal"
 | |
| 
 | |
| OBJECT_DECLARE_SIMPLE_TYPE(Bcm2835ThermalState, BCM2835_THERMAL)
 | |
| 
 | |
| struct Bcm2835ThermalState {
 | |
|     /*< private >*/
 | |
|     SysBusDevice parent_obj;
 | |
|     /*< public >*/
 | |
|     MemoryRegion iomem;
 | |
|     uint32_t ctl;
 | |
| };
 | |
| 
 | |
| #endif
 |