summaryrefslogtreecommitdiff
path: root/driver
diff options
context:
space:
mode:
authorAaron Massey <aaronmassey@google.com>2022-10-24 11:34:20 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-25 16:32:53 +0000
commit01835ef4b671baffe8d845bd1b7e4c92e49680c1 (patch)
tree1acbd2fa9c7a9c853885eaed32e9a95e88be02fc /driver
parent95134ee0c7311a4073f483b81d6633f38e336ec1 (diff)
downloadchrome-ec-01835ef4b671baffe8d845bd1b7e4c92e49680c1.tar.gz
test: chg_ramp_is_detected()
Add a test that verifies the chg_ramp_is_detected() function fetched the charge ramping detection state from driver-specific functions. BRANCH=none BUG=b:255357127 TEST=twister -i -s zephyr/test/drivers/drivers.common_charger Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: I0621f899da731d1b21e5a1d29ffc95c60d4fb586 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3975972 Reviewed-by: Tristan Honscheid <honscheid@google.com> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'driver')
-rw-r--r--driver/charger/isl923x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/charger/isl923x.c b/driver/charger/isl923x.c
index 25f873d66b..df656278c7 100644
--- a/driver/charger/isl923x.c
+++ b/driver/charger/isl923x.c
@@ -1023,7 +1023,7 @@ test_mockable_static int isl923x_ramp_is_stable(int chgnum)
return 0;
}
-static int isl923x_ramp_is_detected(int chgnum)
+test_mockable_static int isl923x_ramp_is_detected(int chgnum)
{
return 1;
}