]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: led: Add missing ';'
authorTom Rini <trini@konsulko.com>
Thu, 25 Sep 2025 20:50:25 +0000 (14:50 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 8 Oct 2025 22:12:36 +0000 (16:12 -0600)
Some tests here had not been compile tested before submission and were
missing a ';' on the end of declaring struct udevice *dev. Add it.

Fixes: 9046279d92bb ("test: dm: Add tests for LED boot and activity")
Signed-off-by: Tom Rini <trini@konsulko.com>
test/dm/led.c

index 36652c2833a996877a833afc391f24878ab678ce..f41a2fb73fc018340da5c2704933b7f9422e6efc 100644 (file)
@@ -162,7 +162,7 @@ DM_TEST(dm_test_led_blink, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 #ifdef CONFIG_LED_BOOT
 static int dm_test_led_boot(struct unit_test_state *uts)
 {
-       struct udevice *dev
+       struct udevice *dev;
 
        /* options/u-boot/boot-led is set to phandle to "sandbox:green" */
        ut_assertok(led_get_by_label("sandbox:green", &dev));
@@ -180,7 +180,7 @@ DM_TEST(dm_test_led_boot, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 #ifndef CONFIG_LED_BLINK
 static int dm_test_led_boot_blink(struct unit_test_state *uts)
 {
-       struct udevice *dev
+       struct udevice *dev;
 
        /* options/u-boot/boot-led is set to phandle to "sandbox:green" */
        ut_assertok(led_get_by_label("sandbox:green", &dev));
@@ -200,7 +200,7 @@ DM_TEST(dm_test_led_boot_blink, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 #ifdef CONFIG_LED_ACTIVITY
 static int dm_test_led_activity(struct unit_test_state *uts)
 {
-       struct udevice *dev
+       struct udevice *dev;
 
        /* options/u-boot/activity-led is set to phandle to "sandbox:red" */
        ut_assertok(led_get_by_label("sandbox:red", &dev));
@@ -218,7 +218,7 @@ DM_TEST(dm_test_led_activity, UTF_SCAN_PDATA | UTF_SCAN_FDT);
 #ifndef CONFIG_LED_BLINK
 static int dm_test_led_activityt_blink(struct unit_test_state *uts)
 {
-       struct udevice *dev
+       struct udevice *dev;
 
        /* options/u-boot/activity-led is set to phandle to "sandbox:red" */
        ut_assertok(led_get_by_label("sandbox:red", &dev));