mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
test: dm: Test for default led naming
This modifies the existing led test to check for default led naming as added in the previous patch. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
aaa3645e16
commit
3e41c7b253
2 changed files with 3 additions and 2 deletions
|
@ -559,7 +559,7 @@
|
|||
|
||||
default_off {
|
||||
gpios = <&gpio_a 6 0>;
|
||||
label = "sandbox:default_off";
|
||||
/* label intentionally omitted */
|
||||
default-state = "off";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -40,7 +40,8 @@ static int dm_test_led_default_state(struct unit_test_state *uts)
|
|||
ut_assertok(led_get_by_label("sandbox:default_on", &dev));
|
||||
ut_asserteq(LEDST_ON, led_get_state(dev));
|
||||
|
||||
ut_assertok(led_get_by_label("sandbox:default_off", &dev));
|
||||
/* Also tests default label behaviour */
|
||||
ut_assertok(led_get_by_label("default_off", &dev));
|
||||
ut_asserteq(LEDST_OFF, led_get_state(dev));
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue