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)
commit00238864435f97dc578cc8b2de7ecc95a1fca0b9
treebc511acd8e7390b465768d7b56bc80b23efde7e6
parent7cb1eb82642becd668665689c6eac2a639a81e1b
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