]> git.baikalelectronics.ru Git - kernel.git/commit
platform/chrome: cros_ec_proto: add Kunit tests for check_features
authorTzung-Bi Shih <tzungbi@kernel.org>
Wed, 22 Jun 2022 04:10:38 +0000 (04:10 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Wed, 20 Jul 2022 01:22:59 +0000 (01:22 +0000)
commit7d1709fb639f083a0f5f7e5e2477b9a8c86920b1
treebc511acd8e7390b465768d7b56bc80b23efde7e6
parentfde9f1bbe1c4abcb4d44ba6de5e2d219ba8fd5ee
platform/chrome: cros_ec_proto: add Kunit tests for check_features

cros_ec_check_features() gets EC features if it hasn't had cache, and
checks whether the given EC_FEATURE_* is supported or not.

Add Kunit tests for cros_ec_check_features().

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