summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-12-05 13:38:32 -0600
committerTom Rini <[email protected]>2025-12-05 13:38:32 -0600
commit384d3785df4dbe452f9fbb4bd9c9c9e986cdc205 (patch)
tree93df78019fee580bc6a1691ac585eb86f5bc83a5 /include
parent1a5e3be3aca271901c3d4c5e0d5fd23c27e258b6 (diff)
parentc4594242aafc3452948a6b57dfbaacdfb4ed0860 (diff)
Merge patch series "led: remove unused legacy LED code"
Quentin Schulz <[email protected]> says: Only the Siemens corvus board seems to be using these two status LEDs from the legacy LED API. Since we're trying to get rid of the last users of the legacy LED API, let's migrate Corvus to the modern LED API instead, which uses DM. For Corvus's case, it also uses DM_GPIO (already enabled in defconfig). Since there was no use for the green status_led (not compiled in), it simply is removed without migrating it to the modern API. If need be, we can always add a new gpio-led in the FDT. Note that I do not own a Siemens Corvus board so it's a bit of a shot in the dark whether it'll work on the first try, only build tested. The red LED should be on whenever reaching U-Boot proper CLI, if not we have an issue. The LED should be controllable with the led command from U-Boot proper CLI. Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include')
-rw-r--r--include/status_led.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/status_led.h b/include/status_led.h
index 85e583f18c8..c3ff399b1ae 100644
--- a/include/status_led.h
+++ b/include/status_led.h
@@ -65,20 +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);
-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_ */