aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-22 12:44:59 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-09-25 11:27:14 +0800
commit23dd0ea4c7edbde5bc05a1567ba0bf41734ea524 (patch)
tree016e12e52bf0fe04e1e40c052bb5f5347205de5b /test
parent88490e197903f6961cf2ee79d0ff8f0727155f27 (diff)
downloadu-boot-23dd0ea4c7edbde5bc05a1567ba0bf41734ea524.zip
u-boot-23dd0ea4c7edbde5bc05a1567ba0bf41734ea524.tar.gz
u-boot-23dd0ea4c7edbde5bc05a1567ba0bf41734ea524.tar.bz2
dm: acpi: Use correct GPIO polarity type in acpi_dp_add_gpio()
This function currently accepts the IRQ-polarity type. Fix it to use the GPIO type instead. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/acpi_dp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dm/acpi_dp.c b/test/dm/acpi_dp.c
index e0fa612..44bcabd 100644
--- a/test/dm/acpi_dp.c
+++ b/test/dm/acpi_dp.c
@@ -398,9 +398,9 @@ static int dm_test_acpi_dp_gpio(struct unit_test_state *uts)
/* Try a few different parameters */
ut_assertnonnull(acpi_dp_add_gpio(dp, "reset", TEST_REF, 0x23, 0x24,
- ACPI_IRQ_ACTIVE_HIGH));
+ ACPI_GPIO_ACTIVE_HIGH));
ut_assertnonnull(acpi_dp_add_gpio(dp, "allow", TEST_REF, 0, 0,
- ACPI_IRQ_ACTIVE_LOW));
+ ACPI_GPIO_ACTIVE_LOW));
ptr = acpigen_get_current(ctx);
ut_assertok(acpi_dp_write(ctx, dp));