qdev/prop: convert pcnet.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
		
							parent
							
								
									01274424cf
								
							
						
					
					
						commit
						186507b446
					
				| 
						 | 
				
			
			@ -2145,12 +2145,8 @@ static SysBusDeviceInfo lance_info = {
 | 
			
		|||
    .qdev.name  = "lance",
 | 
			
		||||
    .qdev.size  = sizeof(SysBusPCNetState),
 | 
			
		||||
    .qdev.props = (Property[]) {
 | 
			
		||||
        {
 | 
			
		||||
            .name   = "dma",
 | 
			
		||||
            .info   = &qdev_prop_ptr,
 | 
			
		||||
            .offset = offsetof(SysBusPCNetState, state.dma_opaque),
 | 
			
		||||
        },
 | 
			
		||||
        {/* end of list */}
 | 
			
		||||
        DEFINE_PROP_PTR("dma", SysBusPCNetState, state.dma_opaque),
 | 
			
		||||
        DEFINE_PROP_END_OF_LIST(),
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue