mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 18:35:42 +01:00 
			
		
		
		
	api: Remove <common.h> and add needed includes
Remove <common.h> from here and when needed add missing include files directly. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
		| @@ -7,11 +7,13 @@ | ||||
|  | ||||
| #include <config.h> | ||||
| #include <command.h> | ||||
| #include <common.h> | ||||
| #include <env.h> | ||||
| #include <malloc.h> | ||||
| #include <time.h> | ||||
| #include <env_internal.h> | ||||
| #include <vsprintf.h> | ||||
| #include <linux/delay.h> | ||||
| #include <linux/errno.h> | ||||
| #include <linux/types.h> | ||||
| #include <api_public.h> | ||||
| #include <u-boot/crc.h> | ||||
|   | ||||
| @@ -3,9 +3,9 @@ | ||||
|  * Copyright (c) 2011 The Chromium OS Authors. | ||||
|  */ | ||||
|  | ||||
| #include <common.h> | ||||
| #include <api_public.h> | ||||
| #include <log.h> | ||||
| #include <linux/types.h> | ||||
|  | ||||
| /* TODO(clchiou): add support of video device */ | ||||
|  | ||||
|   | ||||
| @@ -6,7 +6,6 @@ | ||||
|  */ | ||||
|  | ||||
| #include <config.h> | ||||
| #include <common.h> | ||||
| #include <net.h> | ||||
| #include <linux/types.h> | ||||
| #include <api_public.h> | ||||
|   | ||||
| @@ -6,10 +6,10 @@ | ||||
|  */ | ||||
|  | ||||
| #include <config.h> | ||||
| #include <common.h> | ||||
| #include <api_public.h> | ||||
| #include <part.h> | ||||
| #include <scsi.h> | ||||
| #include <linux/types.h> | ||||
|  | ||||
| #if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE) | ||||
| #include <usb.h> | ||||
|   | ||||
| @@ -5,7 +5,7 @@ | ||||
|  * Written by: Rafal Jaworowski <raj@semihalf.com> | ||||
|  */ | ||||
|  | ||||
| #include <common.h> | ||||
| #include <stdio.h> | ||||
| #include <env.h> | ||||
| #include <linux/types.h> | ||||
| #include <api_public.h> | ||||
|   | ||||
| @@ -3,7 +3,6 @@ | ||||
|  * (C) Copyright 2007-2008 Semihalf, Rafal Jaworowski <raj@semihalf.com> | ||||
|  */ | ||||
|  | ||||
| #include <common.h> | ||||
| #include <env.h> | ||||
| #include <linux/types.h> | ||||
| #include <api_public.h> | ||||
|   | ||||
| @@ -9,7 +9,6 @@ | ||||
|  * existing code e.g. operations on strings and similar. | ||||
|  */ | ||||
|  | ||||
| #include <common.h> | ||||
| #include <command.h> | ||||
| #include <hang.h> | ||||
| #include <linux/delay.h> | ||||
|   | ||||
| @@ -6,7 +6,6 @@ | ||||
|  * Licensed under the 2-clause BSD. | ||||
|  */ | ||||
|  | ||||
| #include <common.h> | ||||
| #include <exports.h> | ||||
| #include <spi.h> | ||||
| #include <linux/delay.h> | ||||
|   | ||||
| @@ -1,6 +1,5 @@ | ||||
| // SPDX-License-Identifier: GPL-2.0+ | ||||
|  | ||||
| #include <common.h> | ||||
| #include <exports.h> | ||||
|  | ||||
| /* | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| #include <common.h> | ||||
| #include <exports.h> | ||||
| #include <linux/compiler.h> | ||||
|  | ||||
|   | ||||
| @@ -8,6 +8,8 @@ | ||||
| #ifndef _API_PUBLIC_H_ | ||||
| #define _API_PUBLIC_H_ | ||||
|  | ||||
| #include <linux/types.h> | ||||
|  | ||||
| #define API_EINVAL		1	/* invalid argument(s)	*/ | ||||
| #define API_ENODEV		2	/* no device		*/ | ||||
| #define API_ENOMEM		3	/* no memory		*/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user