mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 20:18:18 +00:00 
			
		
		
		
	Header files generally should not include header files just for a struct, since forward declarations work just as well and reduce overhead. Add a warning for dm.h being included, since this has crept into U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			21 lines
		
	
	
		
			350 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			350 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0+ */
 | |
| /*
 | |
|  * Copyright (c) 2013 Google, Inc
 | |
|  */
 | |
| 
 | |
| #ifdef _DM_H_
 | |
| #warning "Suspect dm.h is included from a header file - please fix"
 | |
| #endif
 | |
| 
 | |
| #ifndef _DM_H_
 | |
| #define _DM_H_
 | |
| 
 | |
| #include <dm/device.h>
 | |
| #include <dm/fdtaddr.h>
 | |
| #include <dm/ofnode.h>
 | |
| #include <dm/read.h>
 | |
| #include <dm/platdata.h>
 | |
| #include <dm/uclass.h>
 | |
| 
 | |
| #endif
 |