[PATCH 01/10] cros_ec: Add a function for the hello message

Simon Glass sjg at chromium.org
Sun Jan 24 21:23:32 CET 2021


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 at 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!


More information about the U-Boot mailing list