]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_proto: add Kunit test for cros_ec_map_error()
authorTzung-Bi Shih <tzungbi@kernel.org>
Wed, 22 Jun 2022 04:10:35 +0000 (04:10 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 20 Jul 2022 01:22:58 +0000 (01:22 +0000)
commitc8c5da0bde86233a86031a5e35b70c6b960fa7a0
treede997e5f7c63d687a39a4182824a89eea26a1b64
parent6df8366c349190d53ef096e5cad454375cc5d49a
platform/chrome: cros_ec_proto: add Kunit test for cros_ec_map_error()

cros_ec_cmd_xfer_status() is the only exported function that calls
static function cros_ec_map_error().

Add Kunit test for cros_ec_map_error() through calling
cros_ec_cmd_xfer_status().

Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/20220622041040.202737-3-tzungbi@kernel.org
drivers/platform/chrome/cros_ec_proto_test.c