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@linux.intel.com
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