[PATCH v2 0/2] leds: class: improve led_remove_lookup()

From: Andy Shevchenko

Date: Tue Mar 31 2026 - 14:34:49 EST


This mini-series targets led_remove_lookup() to be more handy for
the optional resources. The first patch makes it no-op for NULL
pointer and the second one makes it idempotent.

Changelog v2:
- added patch 2

v1: 20260327102729.797254-1-andriy.shevchenko@xxxxxxxxxxxxxxx

Andy Shevchenko (2):
leds: class: Make led_remove_lookup() NULL-aware
leds: class: Reinitialise list after dropping from lookup table

drivers/leds/led-class.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

--
2.50.1