Re: [PATCH 07/31] dm: core: Drop header files from dm/test.h

2020-08-04 Thread Tom Rini
On Sun, Jul 19, 2020 at 10:15:37AM -0600, Simon Glass wrote:

> These header file should not be included in other header files. Remove
> them and add to each individual file. Add test/test.h to test/ui.h since
> that is a reasonable place.
> 
> Signed-off-by: Simon Glass 

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: PGP signature


[PATCH 07/31] dm: core: Drop header files from dm/test.h

2020-07-19 Thread Simon Glass
These header file should not be included in other header files. Remove
them and add to each individual file. Add test/test.h to test/ui.h since
that is a reasonable place.

Signed-off-by: Simon Glass 
---

 include/dm/test.h  | 3 ---
 include/test/ut.h  | 1 +
 test/dm/adc.c  | 1 +
 test/dm/audio.c| 1 +
 test/dm/axi.c  | 3 ++-
 test/dm/blk.c  | 1 +
 test/dm/board.c| 1 +
 test/dm/bootcount.c| 1 +
 test/dm/bus.c  | 1 +
 test/dm/clk.c  | 1 +
 test/dm/clk_ccf.c  | 1 +
 test/dm/core.c | 1 +
 test/dm/cpu.c  | 1 +
 test/dm/dma.c  | 1 +
 test/dm/dsi_host.c | 1 +
 test/dm/eth.c  | 3 ++-
 test/dm/firmware.c | 1 +
 test/dm/gpio.c | 3 ++-
 test/dm/hwspinlock.c   | 1 +
 test/dm/i2c.c  | 1 +
 test/dm/i2s.c  | 3 ++-
 test/dm/led.c  | 1 +
 test/dm/mailbox.c  | 1 +
 test/dm/mdio.c | 5 +++--
 test/dm/mdio_mux.c | 5 +++--
 test/dm/misc.c | 1 +
 test/dm/mmc.c  | 1 +
 test/dm/nop.c  | 1 +
 test/dm/ofnode.c   | 1 +
 test/dm/osd.c  | 5 +++--
 test/dm/panel.c| 3 ++-
 test/dm/pch.c  | 1 +
 test/dm/pci.c  | 1 +
 test/dm/pci_ep.c   | 5 +++--
 test/dm/phy.c  | 1 +
 test/dm/pmic.c | 5 +++--
 test/dm/power-domain.c | 1 +
 test/dm/pwm.c  | 1 +
 test/dm/ram.c  | 1 +
 test/dm/regmap.c   | 1 +
 test/dm/regulator.c| 1 +
 test/dm/remoteproc.c   | 2 ++
 test/dm/reset.c| 1 +
 test/dm/rtc.c  | 1 +
 test/dm/serial.c   | 1 +
 test/dm/sf.c   | 1 +
 test/dm/smem.c | 1 +
 test/dm/sound.c| 1 +
 test/dm/spi.c  | 1 +
 test/dm/spmi.c | 1 +
 test/dm/syscon.c   | 1 +
 test/dm/sysreset.c | 1 +
 test/dm/tee.c  | 1 +
 test/dm/test-driver.c  | 3 ++-
 test/dm/test-fdt.c | 1 +
 test/dm/test-main.c| 2 ++
 test/dm/test-uclass.c  | 1 +
 test/dm/timer.c| 1 +
 test/dm/usb.c  | 1 +
 test/dm/video.c| 1 +
 test/dm/virtio.c   | 3 ++-
 test/dm/wdt.c  | 1 +
 test/lib/lmb.c | 2 ++
 63 files changed, 82 insertions(+), 20 deletions(-)

diff --git a/include/dm/test.h b/include/dm/test.h
index d39686cde2..2c92d41278 100644
--- a/include/dm/test.h
+++ b/include/dm/test.h
@@ -6,9 +6,6 @@
 #ifndef __DM_TEST_H
 #define __DM_TEST_H
 
-#include 
-#include 
-
 /**
  * struct dm_test_cdata - configuration data for test instance
  *
diff --git a/include/test/ut.h b/include/test/ut.h
index 99bbb1230c..6ab2f8830d 100644
--- a/include/test/ut.h
+++ b/include/test/ut.h
@@ -11,6 +11,7 @@
 #include 
 #include 
 #include 
+#include 
 
 struct unit_test_state;
 
diff --git a/test/dm/adc.c b/test/dm/adc.c
index da7bd4bf1f..7fa1d48dd9 100644
--- a/test/dm/adc.c
+++ b/test/dm/adc.c
@@ -17,6 +17,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 static int dm_test_adc_bind(struct unit_test_state *uts)
diff --git a/test/dm/audio.c b/test/dm/audio.c
index 77c3a3625b..4bb86e3214 100644
--- a/test/dm/audio.c
+++ b/test/dm/audio.c
@@ -8,6 +8,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 
diff --git a/test/dm/axi.c b/test/dm/axi.c
index e1155a51dd..5b1bbab0b8 100644
--- a/test/dm/axi.c
+++ b/test/dm/axi.c
@@ -8,9 +8,10 @@
 #include 
 #include 
 #include 
+#include 
 #include 
+#include 
 #include 
-#include 
 
 /* Test that sandbox AXI works correctly */
 static int dm_test_axi_base(struct unit_test_state *uts)
diff --git a/test/dm/blk.c b/test/dm/blk.c
index 94b2855b8e..80d671e561 100644
--- a/test/dm/blk.c
+++ b/test/dm/blk.c
@@ -9,6 +9,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/test/dm/board.c b/test/dm/board.c
index 5472c65fad..ff50d6c38b 100644
--- a/test/dm/board.c
+++ b/test/dm/board.c
@@ -9,6 +9,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include "../../drivers/board/sandbox.h"
diff --git a/test/dm/bootcount.c b/test/dm/bootcount.c
index be0c278907..9fd3751ef7 100644
--- a/test/dm/bootcount.c
+++ b/test/dm/bootcount.c
@@ -9,6 +9,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 static int dm_test_bootcount(struct unit_test_state *uts)
diff --git a/test/dm/bus.c b/test/dm/bus.c
index 73eb3aede3..0707267361 100644
--- a/test/dm/bus.c
+++ b/test/dm/bus.c
@@ -14,6 +14,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 DECLARE_GLOBAL_DATA_PTR;
diff --git a/test/dm/clk.c b/test/dm/clk.c
index 48fc3dd714..7a39760f25 100644
--- a/test/dm/clk.c
+++ b/test/dm/clk.c
@@ -12,6 +12,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 /* Base test of the clk uclass */
diff --git a/test/dm/clk_ccf.c b/test/dm/clk_ccf.c
index ae3a4d8a76..da2292a51a 100644
--- a/test/dm/clk_ccf.c
+++ b/test/dm/clk_ccf.c
@@ -11,6 +11,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 
diff --git a/test/dm/core.c b/test/dm/core.c
index 6a930ae31a..7ca0355d8e 100644
---