diff options
| author | Tom Rini <[email protected]> | 2026-03-18 13:13:57 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-03-18 13:13:57 -0600 |
| commit | 28608c808774a39ec47d31353b141db547136e58 (patch) | |
| tree | 29ee72ed3cce59e7e2fac39b4a5bc3b8a639218a /net | |
| parent | 24db98cdf911b6ca362209e674bf9412441c1095 (diff) | |
| parent | fcbf81694c9399a71ac100b4de15089c3e09dd8c (diff) | |
Merge patch series "led: remove legacy API"
Quentin Schulz <[email protected]> says:
This migrates the last user of the legacy LED API, IMX233-OLinuXino and
net/bootp.c, to the modern LED framework.
I do have concern about being able to use BOOTP in SPL? In which case, I
should probably add an additional check on CONFIG_IS_ENABLED(LED) in
addition to IS_ENABLED(CONFIG_LED_BOOT)?
I haven't tested this as I do not own an IMX233-OLinuXino, so please
give this a try if you own this device.
Then, since there's no user left of this legacy API, it is entirely
removed.
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net')
| -rw-r--r-- | net/bootp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bootp.c b/net/bootp.c index 64fca9a42d9..1d905a01a47 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -19,8 +19,8 @@ #include <linux/delay.h> #include <net/tftp.h> #include "bootp.h" -#ifdef CONFIG_LED_STATUS -#include <status_led.h> +#if IS_ENABLED(CONFIG_LED_BOOT) +#include <led.h> #endif #ifdef CONFIG_BOOTP_RANDOM_DELAY #include "net_rand.h" @@ -396,8 +396,8 @@ static void bootp_handler(uchar *pkt, unsigned dest, struct in_addr sip, /* * Got a good BOOTP reply. Copy the data into our variables. */ -#if defined(CONFIG_LED_STATUS) && defined(CONFIG_LED_STATUS_BOOT_ENABLE) - status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_OFF); +#if IS_ENABLED(CONFIG_LED_BOOT) + led_boot_off(); #endif store_net_params(bp); /* Store net parameters from reply */ |
