From db094c2e60176b3c63ce788159b04a7024ad1010 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Mon, 16 Nov 2009 00:35:05 -0800 Subject: target: don't implicitly include "algorithm.h" Most files in the tree seem to have ended up including this, and *quite* needlessly ... only code implementing or using downloadable algorithms actually needs these declarations. So take it out of the header files which included it, and put it in files which use it ... reduce needless interdependencies. Also: "algorithm.h" doesn't need to include "types.h" again; it already comes from a different header. Signed-off-by: David Brownell --- src/flash/arm_nandio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/flash/arm_nandio.c') diff --git a/src/flash/arm_nandio.c b/src/flash/arm_nandio.c index 63eb0413..81697fa5 100644 --- a/src/flash/arm_nandio.c +++ b/src/flash/arm_nandio.c @@ -26,6 +26,7 @@ #include "arm_nandio.h" #include "armv4_5.h" +#include "algorithm.h" /* @@ -43,8 +44,8 @@ int arm_nandwrite(struct arm_nand_data *nand, uint8_t *data, int size) { struct target *target = nand->target; struct armv4_5_algorithm algo; - struct arm *armv4_5 = target->arch_info; - struct reg_param reg_params[3]; + struct arm *armv4_5 = target->arch_info; + struct reg_param reg_params[3]; uint32_t target_buf; uint32_t exit = 0; int retval; -- cgit v1.2.3