summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Peress <peress@google.com>2021-10-03 23:56:18 -0600
committerCommit Bot <commit-bot@chromium.org>2021-10-05 14:24:25 +0000
commitd90ac17a3f4b38e5aa8087af4cdfa987dbe74f52 (patch)
tree5e45b5384213de9486d398584af7a7cb4bbcc5b3
parent7399d82bc7183de1f881677f0ba05738fd650e03 (diff)
downloadchrome-ec-d90ac17a3f4b38e5aa8087af4cdfa987dbe74f52.tar.gz
zephyr: test: isl923x: make all tests static
A few tests were not declared as static functions, fix that. BRANCH=none BUG=b:201602829 TEST=zmake configure --test zephyr/test/drivers Signed-off-by: Yuval Peress <peress@google.com> Change-Id: I83052ab0f72b9803ff4f06e3459cc819e6744dd1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3201917 Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r--zephyr/test/drivers/src/isl923x.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/zephyr/test/drivers/src/isl923x.c b/zephyr/test/drivers/src/isl923x.c
index 0bcf8c8382..e1b1dbc020 100644
--- a/zephyr/test/drivers/src/isl923x.c
+++ b/zephyr/test/drivers/src/isl923x.c
@@ -51,7 +51,7 @@ static int mock_write_fn_always_fail(struct i2c_emul *emul, int reg,
return 0;
}
-void test_isl923x_set_current(void)
+static void test_isl923x_set_current(void)
{
const struct emul *isl923x_emul = ISL923X_EMUL;
struct i2c_emul *i2c_emul = isl923x_emul_get_i2c_emul(isl923x_emul);
@@ -91,7 +91,7 @@ void test_isl923x_set_current(void)
}
}
-void test_isl923x_set_voltage(void)
+static void test_isl923x_set_voltage(void)
{
int expected_voltage_milli_volts[] = { 8, 16, 32, 64,
128, 256, 512, 1024,
@@ -124,7 +124,7 @@ void test_isl923x_set_voltage(void)
}
}
-void test_isl923x_set_input_current_limit(void)
+static void test_isl923x_set_input_current_limit(void)
{
const struct emul *isl923x_emul = ISL923X_EMUL;
struct i2c_emul *i2c_emul = isl923x_emul_get_i2c_emul(isl923x_emul);
@@ -190,7 +190,7 @@ void test_isl923x_set_input_current_limit(void)
}
}
-void test_manufacturer_id(void)
+static void test_manufacturer_id(void)
{
const struct emul *isl923x_emul = ISL923X_EMUL;
struct i2c_emul *i2c_emul = isl923x_emul_get_i2c_emul(isl923x_emul);
@@ -211,7 +211,7 @@ void test_manufacturer_id(void)
I2C_COMMON_EMUL_NO_FAIL_REG);
}
-void test_device_id(void)
+static void test_device_id(void)
{
const struct emul *isl923x_emul = ISL923X_EMUL;
struct i2c_emul *i2c_emul = isl923x_emul_get_i2c_emul(isl923x_emul);
@@ -232,7 +232,7 @@ void test_device_id(void)
I2C_COMMON_EMUL_NO_FAIL_REG);
}
-void test_options(void)
+static void test_options(void)
{
const struct emul *isl923x_emul = ISL923X_EMUL;
struct i2c_emul *i2c_emul = isl923x_emul_get_i2c_emul(isl923x_emul);
@@ -273,7 +273,7 @@ void test_options(void)
"Expected options 0xff7ffffe but got 0x%x", option);
}
-void test_get_info(void)
+static void test_get_info(void)
{
const struct charger_info *info = isl923x_drv.get_info(CHARGER_NUM);
@@ -292,7 +292,7 @@ void test_get_info(void)
NULL);
}
-void test_status(void)
+static void test_status(void)
{
int status;
@@ -300,7 +300,7 @@ void test_status(void)
zassert_equal(CHARGER_LEVEL_2, status, NULL);
}
-void test_set_mode(void)
+static void test_set_mode(void)
{
const struct emul *isl923x_emul = ISL923X_EMUL;
@@ -318,12 +318,12 @@ void test_set_mode(void)
zassert_true(!isl923x_emul_is_learn_mode_enabled(isl923x_emul), NULL);
}
-void test_post_init(void)
+static void test_post_init(void)
{
zassert_ok(isl923x_drv.post_init(CHARGER_NUM), NULL);
}
-void test_set_ac_prochot(void)
+static void test_set_ac_prochot(void)
{
const struct emul *isl923x_emul = ISL923X_EMUL;
const struct device *i2c_dev = isl923x_emul_get_parent(isl923x_emul);
@@ -384,7 +384,7 @@ void test_set_ac_prochot(void)
current_milli_amps);
}
}
-void test_set_dc_prochot(void)
+static void test_set_dc_prochot(void)
{
const struct emul *isl923x_emul = ISL923X_EMUL;
const struct device *i2c_dev = isl923x_emul_get_parent(isl923x_emul);
@@ -440,7 +440,7 @@ void test_set_dc_prochot(void)
}
}
-void test_comparator_inversion(void)
+static void test_comparator_inversion(void)
{
const struct emul *isl923x_emul = ISL923X_EMUL;
const struct device *i2c_dev = isl923x_emul_get_parent(isl923x_emul);