From 16415e9563ec04241c58f0a85cd2fc1d89f3033e Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Wed, 19 Nov 2025 18:01:13 +0100 Subject: led: remove support for green status led in legacy API The last user of it was removed in a previous commit so let's remove its support entirely. Signed-off-by: Quentin Schulz Reviewed-by: Heiko Schocher --- include/status_led.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include') diff --git a/include/status_led.h b/include/status_led.h index 85e583f18c8..8e8b19f8c19 100644 --- a/include/status_led.h +++ b/include/status_led.h @@ -72,13 +72,9 @@ static inline void status_led_boot_blink(void) { } #ifndef __ASSEMBLY__ void red_led_on(void); void red_led_off(void); -void green_led_on(void); -void green_led_off(void); #else .extern red_led_on .extern red_led_off - .extern green_led_on - .extern green_led_off #endif #endif /* _STATUS_LED_H_ */ -- cgit v1.2.3 From c4594242aafc3452948a6b57dfbaacdfb4ed0860 Mon Sep 17 00:00:00 2001 From: Quentin Schulz Date: Wed, 19 Nov 2025 18:01:15 +0100 Subject: 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 Reviewed-by: Heiko Schocher --- include/status_led.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'include') diff --git a/include/status_led.h b/include/status_led.h index 8e8b19f8c19..c3ff399b1ae 100644 --- a/include/status_led.h +++ b/include/status_led.h @@ -65,16 +65,4 @@ static inline void status_led_set(int led, int state) { } static inline void status_led_boot_blink(void) { } #endif /* CONFIG_LED_STATUS */ - -/* - * Coloured LEDs API - */ -#ifndef __ASSEMBLY__ -void red_led_on(void); -void red_led_off(void); -#else - .extern red_led_on - .extern red_led_off -#endif - #endif /* _STATUS_LED_H_ */ -- cgit v1.2.3