cros_ec: Add a function for the hello message
authorSimon Glass <sjg@chromium.org>
Sat, 16 Jan 2021 21:52:22 +0000 (14:52 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2021 21:25:41 +0000 (14:25 -0700)
commitd8e9a93895fb3ad710963ddef6a4cc7c43bd65f6
tree1696ef961329c3eba9122bda0d0f7cb284165587
parent3096ee866e7388277ad3968d9c7ea704589dedea
cros_ec: Add a function for the hello message

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
drivers/misc/cros_ec.c
drivers/misc/cros_ec_sandbox.c
include/cros_ec.h
test/dm/Makefile
test/dm/cros_ec.c [new file with mode: 0644]