From b695cb75220100cd9bbfaec5bd1740958454130d Mon Sep 17 00:00:00 2001 From: David Brownell Date: Mon, 16 Nov 2009 00:35:24 -0800 Subject: #include "target.h" less wildly Don't include "target.h" from more headers than necessary. This avoids needless interdependencies and duplicated include paths. Don't needlessly include it in source files, either. Signed-off-by: David Brownell --- src/flash/at91sam3.c | 1 - src/flash/lpc3180_nand_controller.h | 2 -- src/flash/mflash.c | 1 + src/flash/mflash.h | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/flash') diff --git a/src/flash/at91sam3.c b/src/flash/at91sam3.c index 0f2be3c1..4507888f 100644 --- a/src/flash/at91sam3.c +++ b/src/flash/at91sam3.c @@ -62,7 +62,6 @@ #include #include "types.h" #include "flash.h" -#include "target.h" #include "membuf.h" #include "at91sam3.h" #include "time_support.h" diff --git a/src/flash/lpc3180_nand_controller.h b/src/flash/lpc3180_nand_controller.h index b965be98..0891cedf 100644 --- a/src/flash/lpc3180_nand_controller.h +++ b/src/flash/lpc3180_nand_controller.h @@ -20,8 +20,6 @@ #ifndef LPC3180_NAND_CONTROLLER_H #define LPC3180_NAND_CONTROLLER_H -#include "target.h" - enum lpc3180_selected_controller { LPC3180_NO_CONTROLLER, diff --git a/src/flash/mflash.c b/src/flash/mflash.c index c2d04ca4..49dc432f 100644 --- a/src/flash/mflash.c +++ b/src/flash/mflash.c @@ -22,6 +22,7 @@ #endif #include "mflash.h" +#include "target.h" #include "time_support.h" #include "fileio.h" #include "log.h" diff --git a/src/flash/mflash.h b/src/flash/mflash.h index ed4a2cdd..358d2536 100644 --- a/src/flash/mflash.h +++ b/src/flash/mflash.h @@ -20,7 +20,7 @@ #ifndef _MFLASH_H #define _MFLASH_H -#include "target.h" +struct command_context; typedef unsigned long mg_io_uint32; typedef unsigned short mg_io_uint16; -- cgit v1.2.3