From dc12ebbbdb765153805d2b17d18edf5fe0813d5a Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 29 Dec 2019 21:19:25 -0700 Subject: dm: test: Add a test driver for devres Add a driver which does devres allocations so that we can write tests for devres. Signed-off-by: Simon Glass --- include/test/test.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/test') diff --git a/include/test/test.h b/include/test/test.h index 98fbcd11f6..5977c59d3f 100644 --- a/include/test/test.h +++ b/include/test/test.h @@ -46,5 +46,14 @@ struct unit_test { .func = _name, \ } +/* Sizes for devres tests */ +enum { + TEST_DEVRES_SIZE = 100, + TEST_DEVRES_COUNT = 10, + TEST_DEVRES_TOTAL = TEST_DEVRES_SIZE * TEST_DEVRES_COUNT, + + /* A different size */ + TEST_DEVRES_SIZE2 = 15, +}; #endif /* __TEST_TEST_H */ -- cgit