diff options
| author | Quentin Schulz <[email protected]> | 2025-11-19 18:01:15 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-12-05 13:38:09 -0600 |
| commit | c4594242aafc3452948a6b57dfbaacdfb4ed0860 (patch) | |
| tree | 93df78019fee580bc6a1691ac585eb86f5bc83a5 /cmd | |
| parent | b06e52f2ea937077b3ff8296e4a67648138ac897 (diff) | |
led: remove support for red LED in legacy API
To the exception of red_led_on in the arm-specific assembly code, all
code interacting with the red status LED was guarded by the
CONFIG_LED_STATUS_RED symbol, which is enabled in none of the upstream
defconfigs.
Since the last board which overrode the weak red_led_on function got
migrated to the new LED mechanism, there's also no user of the
arm-specific assembly code anymore, therefore it can be removed along
the other unreachable code sections.
Signed-off-by: Quentin Schulz <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/legacy_led.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cmd/legacy_led.c b/cmd/legacy_led.c index 2c6d606f48b..4e0d09522ad 100644 --- a/cmd/legacy_led.c +++ b/cmd/legacy_led.c @@ -45,9 +45,6 @@ static const led_tbl_t led_commands[] = { { "5", CONFIG_LED_STATUS_BIT5, NULL, NULL, NULL }, #endif #endif -#ifdef CONFIG_LED_STATUS_RED - { "red", CONFIG_LED_STATUS_RED, red_led_off, red_led_on, NULL }, -#endif { NULL, 0, NULL, NULL, NULL } }; @@ -159,9 +156,6 @@ U_BOOT_CMD( "5|" #endif #endif -#ifdef CONFIG_LED_STATUS_RED - "red|" -#endif "all] [on|off|toggle|blink] [blink-freq in ms]", "[led_name] [on|off|toggle|blink] sets or clears led(s)" ); |
