
24 Jan
2021
24 Jan
'21
9:23 p.m.
This is used several times in this file. Put it in a function to avoid code duplication.
Also add a test for this function. There are no cros_ec tests at present, so it is time to update the code.
Signed-off-by: Simon Glass sjg@chromium.org ---
arch/sandbox/include/asm/test.h | 14 ++++++++++ drivers/misc/cros_ec.c | 46 ++++++++++++++++++++++----------- drivers/misc/cros_ec_sandbox.c | 12 +++++++++ include/cros_ec.h | 11 ++++++++ test/dm/Makefile | 1 + test/dm/cros_ec.c | 32 +++++++++++++++++++++++ 6 files changed, 101 insertions(+), 15 deletions(-) create mode 100644 test/dm/cros_ec.c
Applied to u-boot-dm, thanks!