aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorCaleb Connolly <caleb.connolly@linaro.org>2024-01-08 15:30:51 +0000
committerCaleb Connolly <caleb.connolly@linaro.org>2024-01-16 12:26:54 +0000
commit4d6d25be5f7bcdc2d722972bff977aff2f91223c (patch)
tree792c61c24de18116e8c8ea2e8ae286d5f210e1e7 /test
parent64550c7f4d34def290d4952ed5c53357802626ec (diff)
downloadu-boot-4d6d25be5f7bcdc2d722972bff977aff2f91223c.tar.gz
test: spmi: fix tests
With the recent changes to the Qualcomm PMIC GPIO driver the sandbox tests for it no longer pass, update the DTS and tests to work with the changes. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/spmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dm/spmi.c b/test/dm/spmi.c
index 9cc284b98cb..97bb0eb30fc 100644
--- a/test/dm/spmi.c
+++ b/test/dm/spmi.c
@@ -81,7 +81,7 @@ static int dm_test_spmi_access_peripheral(struct unit_test_state *uts)
int offset_count;
/* Get second pin of PMIC GPIO */
- ut_assertok(gpio_lookup_name("spmi1", &dev, &offset, &gpio));
+ ut_assertok(gpio_lookup_name("pmic1", &dev, &offset, &gpio));
/* Check if PMIC is parent */
ut_asserteq(device_get_uclass_id(dev->parent), UCLASS_PMIC);
@@ -92,7 +92,7 @@ static int dm_test_spmi_access_peripheral(struct unit_test_state *uts)
name = gpio_get_bank_info(dev, &offset_count);
/* Check bank name */
- ut_asserteq_str("spmi", name);
+ ut_asserteq_str("pmic", name);
/* Check pin count */
ut_asserteq(4, offset_count);