diff options
author | Simon Glass <sjg@chromium.org> | 2020-07-29 04:41:12 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-08 05:31:32 +0300 |
commit | e180c2b129016baf21086eca73767844e7eff185 (patch) | |
tree | 9024230dcb1a4f3480cc18a4bed4e965ff406d51 /test/dm/button.c | |
parent | bd34715599c17e0d3f09af1cdfba8af120bc8602 (diff) | |
download | u-boot-e180c2b129016baf21086eca73767844e7eff185.tar.xz |
dm: Rename DM test flags to make them more generic
The test flags used by driver model are currently not available to other
tests. Rather than creating two sets of flags, make these flags generic
by changing the DM_ prefix to UT_ and moving them to the test.h header.
This will allow adding other test flags without confusion.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/button.c')
-rw-r--r-- | test/dm/button.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dm/button.c b/test/dm/button.c index 890f470d97..9117801736 100644 --- a/test/dm/button.c +++ b/test/dm/button.c @@ -25,7 +25,7 @@ static int dm_test_button_base(struct unit_test_state *uts) return 0; } -DM_TEST(dm_test_button_base, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); +DM_TEST(dm_test_button_base, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT); /* Test of the button uclass using the button_gpio driver */ static int dm_test_button_gpio(struct unit_test_state *uts) @@ -50,7 +50,7 @@ static int dm_test_button_gpio(struct unit_test_state *uts) return 0; } -DM_TEST(dm_test_button_gpio, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); +DM_TEST(dm_test_button_gpio, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT); /* Test obtaining an BUTTON by label */ static int dm_test_button_label(struct unit_test_state *uts) @@ -71,4 +71,4 @@ static int dm_test_button_label(struct unit_test_state *uts) return 0; } -DM_TEST(dm_test_button_label, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); +DM_TEST(dm_test_button_label, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT); |