summaryrefslogtreecommitdiff
path: root/test/cmd
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2022-04-28 13:46:31 -0400
committerTom Rini <[email protected]>2022-04-28 13:46:31 -0400
commite95afa56753cebcd20a5114b6d121f281b789006 (patch)
tree0341804963b0b02bcd2ac0ddb1d306f804871938 /test/cmd
parent8b2b125e95c44bb007b4573945f4aedb8a56222c (diff)
parent53ee48b67302e188dc2805cef393707975b305c8 (diff)
Merge branch '2022-04-28-led-updates'
- DM GPIO bugfix - LED related code clean-ups - Fix some of the DM/LED tests - Update the LED dt binding doc
Diffstat (limited to 'test/cmd')
-rw-r--r--test/cmd/pinmux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cmd/pinmux.c b/test/cmd/pinmux.c
index de3bb0d2f97..df40bb77435 100644
--- a/test/cmd/pinmux.c
+++ b/test/cmd/pinmux.c
@@ -7,12 +7,17 @@
#include <common.h>
#include <command.h>
+#include <dm.h>
#include <dm/test.h>
#include <test/test.h>
#include <test/ut.h>
static int dm_test_cmd_pinmux_status_pinname(struct unit_test_state *uts)
{
+ struct udevice *dev;
+
+ ut_assertok(uclass_get_device(UCLASS_LED, 2, &dev));
+
/* Test that 'pinmux status <pinname>' displays the selected pin. */
console_record_reset();
run_command("pinmux status a5", 0);