summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/default/src/isl923x.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/test/drivers/default/src/isl923x.c')
-rw-r--r--zephyr/test/drivers/default/src/isl923x.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/zephyr/test/drivers/default/src/isl923x.c b/zephyr/test/drivers/default/src/isl923x.c
index 1393466c76..e17dbbe797 100644
--- a/zephyr/test/drivers/default/src/isl923x.c
+++ b/zephyr/test/drivers/default/src/isl923x.c
@@ -3,21 +3,21 @@
* found in the LICENSE file.
*/
+#include <zephyr/ztest.h>
+#include <zephyr/drivers/emul.h>
+#include <zephyr/fff.h>
+
#include "battery.h"
#include "battery_smart.h"
+#include "test/drivers/charger_utils.h"
#include "driver/charger/isl923x.h"
#include "driver/charger/isl923x_public.h"
#include "emul/emul_common_i2c.h"
#include "emul/emul_isl923x.h"
#include "system.h"
-#include "test/drivers/charger_utils.h"
#include "test/drivers/test_mocks.h"
#include "test/drivers/test_state.h"
-#include <zephyr/drivers/emul.h>
-#include <zephyr/fff.h>
-#include <zephyr/ztest.h>
-
BUILD_ASSERT(CONFIG_CHARGER_SENSE_RESISTOR == 10 ||
CONFIG_CHARGER_SENSE_RESISTOR == 5);
@@ -681,9 +681,9 @@ ZTEST(isl923x, test_init_late_jump)
isl923x_drv.get_input_current_limit(CHARGER_NUM,
&input_current),
"Could not read input current limit.");
- zassert_equal(CONFIG_CHARGER_DEFAULT_CURRENT_LIMIT, input_current,
+ zassert_equal(CONFIG_CHARGER_INPUT_CURRENT, input_current,
"Input current (%d) not at (%d)", input_current,
- CONFIG_CHARGER_DEFAULT_CURRENT_LIMIT);
+ CONFIG_CHARGER_INPUT_CURRENT);
}
ZTEST(isl923x, test_isl923x_is_acok)